Triazolopyridines and triazolopyrazines as lsd1 inhibitors

ABSTRACT

The present invention is directed to [1,2,4]triazolo[4,3-a]pyridine and [1,2,4]triazolo[4,3-a]pyrazine derivatives which are LSD1 inhibitors useful in the treatment of diseases such as cancer.

FIELD OF THE INVENTION

The present invention is directed to [1,2,4]triazolo[4,3-a]pyridine and [1,2,4]triazolo[4,3-a]pyrazine derivatives which are LSD1 inhibitors useful in the treatment of diseases such as cancer.

BACKGROUND OF THE INVENTION

Epigenetic modifications can impact genetic variation but, when dysregulated, can also contribute to the development of various diseases (Portela, A. and M. Esteller, Epigenetic modifications and human disease. Nat Biotechnol, 2010. 28(10): p. 1057-68; Lund, A. H. and M. van Lohuizen, Epigenetics and cancer. Genes Dev, 2004. 18(19): p. 2315-35). Recently, in depth cancer genomics studies have discovered many epigenetic regulatory genes are often mutated or their own expression is abnormal in a variety of cancers (Dawson, M. A. and T. Kouzarides, Cancer epigenetics: from mechanism to therapy. Cell, 2012. 150(1): p. 12-27; Waldmann, T. and R. Schneider, Targeting histone modifications—epigenetics in cancer. Curr Opin Cell Biol, 2013. 25(2): p. 184-9; Shen, H. and P. W. Laird, Interplay between the cancer genome and epigenome. Cell, 2013. 153(1): p. 38-55). This implies epigenetic regulators function as cancer drivers or are permissive for tumorigenesis or disease progression. Therefore, deregulated epigenetic regulators are attractive therapeutic targets.

One particular enzyme which is associated with human diseases is lysine specific demethylase-1 (LSD1), the first discovered histone demethylase (Shi, Y., et al., Histone demethylation mediated by the nuclear amine oxidase homolog LSD1. Cell, 2004. 119(7): p. 941-53). It consists of three major domains: the N-terminal SWIRM which functions in nucleosome targeting, the tower domain which is involved in protein-protein interaction, such as transcriptional co-repressor, co-repressor of RE1-silencing transcription factor (CoREST), and lastly the C terminal catalytic domain whose sequence and structure share homology with the flavin adenine dinucleotide (FAD)-dependent monoamine oxidases (i.e., MAO-A and MAO-B) (Forneris, F., et al., Structural basis of LSD1-CoREST selectivity in histone H3 recognition. J Biol Chem, 2007. 282(28): p. 20070-4; Anand, R. and R. Marmorstein, Structure and mechanism of lysine-specific demethylase enzymes. J Biol Chem, 2007. 282(49): p. 35425-9; Stavropoulos, P., G. Blobel, and A. Hoelz, Crystal structure and mechanism of human lysine-specific demethylase-1. Nat Struct Mol Biol, 2006. 13(7): p. 626-32; Chen, Y., et al., Crystal structure of human histone lysine-specific demethylase 1 (LSD1). Proc Natl Acad Sci USA, 2006. 103(38): p. 13956-61). LSD1 also shares a fair degree of homology with another lysine specific demethylase (LSD2) (Karytinos, A., et al., A novel mammalian flavin-dependent histone demethylase. J Biol Chem, 2009. 284(26): p. 17775-82). Although the biochemical mechanism of action is conserved in two isoforms, the substrate specificities are thought to be distinct with relatively small overlap. The enzymatic reactions of LSD1 and LSD2 are dependent on the redox process of FAD and the requirement of a protonated nitrogen in the methylated lysine is thought to limit the activity of LSD1/2 to mono- and di-methylated lysines at the position of 4 or 9 of histone 3 (H3K4 or H3K9). These mechanisms make LSD1/2 distinct from other histone demethylase families (i.e. Jumonji domain containing family) that can demethylate mono-, di-, and tri-methylated lysines through alpha-ketoglutarate dependent reactions (Kooistra, S. M. and K. Helie, Molecular mechanisms and potential functions of histone demethylases. Nat Rev Mol Cell Biol, 2012. 13(5): p. 297-311; Mosammaparast, N. and Y. Shi, Reversal of histone methylation: biochemical and molecular mechanisms of histone demethylases. Annu Rev Biochem, 2010. 79: p. 155-79).

Methylated histone marks on H3K4 and H3K9 are generally coupled with transcriptional activation and repression, respectively. As part of corepressor complexes (e.g., CoREST), LSD1 has been reported to demethylate H3K4 and repress transcription, whereas LSD1, in nuclear hormone receptor complex (e.g., androgen receptor), may demethylate H3K9 to activate gene expression (Metzger, E., et al., LSD1 demethylates repressive histone marks to promote androgen-receptor-dependent transcription. Nature, 2005. 437(7057): p. 436-9; Kahl, P., et al., Androgen receptor coactivators lysine-specific histone demethylase 1 and four and a half LIM domain protein 2 predict risk of prostate cancer recurrence. Cancer Res, 2006. 66(23): p. 11341-7). This suggests the substrate specificity of LSD1 can be determined by associated factors, thereby regulating alternative gene expressions in a context dependent manner. In addition to histone proteins, LSD1 may demethylate non-histone proteins. These include p53 (Huang, J., et al., p53 is regulated by the lysine demethylase LSD1. Nature, 2007. 449(7158): p. 105-8.), E2F (Kontaki, H. and I. Talianidis, Lysine methylation regulates E2F1-induced cell death. Mol Cell, 2010. 39(1): p. 152-60), STAT3 (Yang, J., et al., Reversible methylation of promoter-bound STAT3 by histone-modifying enzymes. Proc Natl Acad Sci USA, 2010. 107(50): p. 21499-504), Tat (Sakane, N., et al., Activation of HIV transcription by the viral Tat protein requires a demethylation step mediated by lysine-specific demethylase 1 (LSD1/KDM1). PLoS Pathog, 2011. 7(8): p. e1002184), and myosin phosphatase target subunit 1 (MYPT1) (Cho, H. S., et al., Demethylation of RB regulator MYPT1 by histone demethylase LSD1 promotes cell cycle progression in cancer cells. Cancer Res, 2011. 71(3): p. 655-60). The lists of non-histone substrates are growing with technical advances in functional proteomics studies. These suggest additional oncogenic roles of LSD1 beyond regulating chromatin remodeling. LSD1 also associates with other epigenetic regulators, such as DNA methyltransferase 1 (DNMT1) (Wang, J., et al., The lysine demethylase LSD1 (KDM1) is required for maintenance of global DNA methylation. Nat Genet, 2009. 41(1): p. 125-9) and histone deacetylases (HDACs) complexes (Hakimi, M. A., et al., A core-BRAF35 complex containing histone deacetylase mediates repression of neuronal-specific genes. Proc Natl Acad Sci USA, 2002. 99(11): p. 7420-5; Lee, M. G., et al., Functional interplay between histone demethylase and deacetylase enzymes. Mol Cell Biol, 2006. 26(17): p. 6395-402; You, A., et al., CoREST is an integral component of the CoREST—human histone deacetylase complex. Proc Natl Acad Sci USA, 2001. 98(4): p. 1454-8). These associations augment the activities of DNMT or HDACs. LSD1 inhibitors may therefore potentiate the effects of HDAC or DNMT inhibitors. Indeed, preclinical studies have shown such potential already (Singh, M. M., et al., Inhibition of LSD1 sensitizes glioblastoma cells to histone deacetylase inhibitors. Neuro Oncol, 2011. 13(8): p. 894-903; Han, H., et al., Synergistic re-activation of epigenetically silenced genes by combinatorial inhibition of DNMTs and LSD1 in cancer cells. PLoS One, 2013. 8(9): p. e75136).

LSD1 has been reported to contribute to a variety of biological processes, including cell proliferation, epithelial-mesenchymal transition (EMT), and stem cell biology (both embryonic stem cells and cancer stem cells) or self-renewal and cellular transformation of somatic cells (Chen, Y., et al., Lysine-specific histone demethylase 1 (LSD1): A potential molecular target for tumor therapy. Crit Rev Eukaryot Gene Expr, 2012. 22(1): p. 53-9; Sun, G., et al., Histone demethylase LSD1 regulates neural stem cell proliferation. Mol Cell Biol, 2010. 30(8): p. 1997-2005; Adamo, A., M. J. Barrero, and J. C. Izpisua Belmonte, LSD1 and pluripotency: a new player in the network. Cell Cycle, 2011. 10(19): p. 3215-6; Adamo, A., et al., LSD1 regulates the balance between self-renewal and differentiation in human embryonic stem cells. Nat Cell Biol, 2011. 13(6): p. 652-9). In particular, cancer stem cells or cancer initiating cells have some pluripotent stem cell properties that contribute to the heterogeneity of cancer cells. This feature may render cancer cells more resistant to conventional therapies, such as chemotherapy or radiotherapy, and then develop recurrence after treatment (Clevers, H., The cancer stem cell: premises, promises and challenges. Nat Med, 2011. 17(3): p. 313-9; Beck, B. and C. Blanpain, Unravelling cancer stem cell potential. Nat Rev Cancer, 2013. 13(10): p. 727-38). LSD1 was reported to maintain an undifferentiated tumor initiating or cancer stem cell phenotype in a spectrum of cancers (Zhang, X., et al., Pluripotent Stem Cell Protein Sox2 Confers Sensitivity to LSD1 Inhibition in Cancer Cells. Cell Rep, 2013. 5(2): p. 445-57; Wang, J., et al., Novel histone demethylase LSD1 inhibitors selectively target cancer cells with pluripotent stem cell properties. Cancer Res, 2011. 71(23): p. 7238-49). Acute myeloid leukemias (AMLs) are an example of neoplastic cells that retain some of their less differentiated stem cell like phenotype or leukemia stem cell (LSC) potential. Analysis of AML cells including gene expression arrays and chromatin immunoprecipitation with next generation sequencing (ChIP-Seq) revealed that LSD1 may regulate a subset of genes involved in multiple oncogenic programs to maintain LSC (Harris, W. J., et al., The histone demethylase KDM1A sustains the oncogenic potential of MLL-AF9 leukemia stem cells. Cancer Cell, 2012. 21(4): p. 473-87; Schenk, T., et al., Inhibition of the LSD1 (KDM1A) demethylase reactivates the all-trans-retinoic acid differentiation pathway in acute myeloid leukemia. Nat Med, 2012. 18(4): p. 605-11). These findings suggest potential therapeutic benefit of LSD1 inhibitors targeting cancers having stem cell properties, such as AMLs.

Overexpression of LSD1 is frequently observed in many types of cancers, including bladder cancer, NSCLC, breast carcinomas, ovary cancer, glioma, colorectal cancer, sarcoma including chondrosarcoma, Ewing's sarcoma, osteosarcoma, and rhabdomyosarcoma, neuroblastoma, prostate cancer, esophageal squamous cell carcinoma, and papillary thyroid carcinoma. Notably, studies found over-expression of LSD1 was significantly associated with clinically aggressive cancers, for example, recurrent prostate cancer, NSCLC, glioma, breast, colon cancer, ovary cancer, esophageal squamous cell carcinoma, and neuroblastoma. In these studies, either knockdown of LSD1 expression or treatment with small molecular inhibitors of LSD1 resulted in decreased cancer cell proliferation and/or induction of apoptosis. See, e.g., Hayami, S., et al., Overexpression of LSD1 contributes to human carcinogenesis through chromatin regulation in various cancers. Int J Cancer, 2011. 128(3): p. 574-86; Lv, T., et al., Over-expression of LSD1 promotes proliferation, migration and invasion in non-small cell lung cancer. PLoS One, 2012. 7(4): p. e35065; Serce, N., et al., Elevated expression of LSD1 (Lysine-specific demethylase 1) during tumour progression from pre-invasive to invasive ductal carcinoma of the breast. BMC Clin Pathol, 2012. 12: p. 13; Lim, S., et al., Lysine-specific demethylase 1 (LSD1) is highly expressed in ER-negative breast cancers and a biomarker predicting aggressive biology. Carcinogenesis, 2010. 31(3): p. 512-20; Konovalov, S. and I. Garcia-Bassets, Analysis of the levels of lysine-specific demethylase 1 (LSD1) mRNA in human ovarian tumors and the effects of chemical LSD1 inhibitors in ovarian cancer cell lines. J Ovarian Res, 2013. 6(1): p. 75; Sareddy, G. R., et al., KDM1 is a novel therapeutic target for the treatment of gliomas. Oncotarget, 2013. 4(1): p. 18-28; Ding, J., et al., LSD1-mediated epigenetic modification contributes to proliferation and metastasis of colon cancer. Br J Cancer, 2013. 109(4): p. 994-1003; Bennani-Baiti, I. M., et al., Lysine-specific demethylase 1 (LSD1/KDM1A/AOF2/BHC110) is expressed and is an epigenetic drug target in chondrosarcoma, Ewing's sarcoma, osteosarcoma, and rhabdomyosarcoma. Hum Pathol, 2012. 43(8): p. 1300-7; Schulte, J. H., et al., Lysine-specific demethylase 1 is strongly expressed in poorly differentiated neuroblastoma: implications for therapy. Cancer Res, 2009. 69(5): p. 2065-71; Crea, F., et al., The emerging role of histone lysine demethylases in prostate cancer. Mol Cancer, 2012. 11: p. 52; Suikki, H. E., et al., Genetic alterations and changes in expression of histone demethylases in prostate cancer. Prostate, 2010. 70(8): p. 889-98; Yu, Y., et al., High expression of lysine-specific demethylase 1 correlates with poor prognosis of patients with esophageal squamous cell carcinoma. Biochem Biophys Res Commun, 2013. 437(2): p. 192-8; Kong, L., et al., Immunohistochemical expression of RBP2 and LSD1 in papillary thyroid carcinoma. Rom J Morphol Embryol, 2013. 54(3): p. 499-503.

Recently, the induction of CD86 expression by inhibiting LSD1 activity was reported (Lynch, J. T., et al., CD86 expression as a surrogate cellular biomarker for pharmacological inhibition of the histone demethylase lysine-specific demethylase 1. Anal Biochem, 2013. 442(1): p. 104-6). CD86 expression is a marker of maturation of dendritic cells (DCs) which are involved in antitumor immune response. Notably, CD86 functions as a co-stimulatory factor to activate T cell proliferation (Greaves, P. and J. G. Gribben, The role of B7 family molecules in hematologic malignancy. Blood, 2013. 121(5): p. 734-44; Chen, L. and D. B. Flies, Molecular mechanisms of T cell co-stimulation and co-inhibition. Nat Rev Immunol, 2013. 13(4): p. 227-42).

In addition to playing a role in cancer, LSD1 activity has also been associated with viral pathogenesis. Particularly, LSD1 activity appears to be linked with viral replications and expressions of viral genes. For example, LSD1 functions as a co-activator to induce gene expression from the viral immediate early genes of various type of herpes virus including herpes simplex virus (HSV), varicella zoster virus (VZV), and β-herpesvirus human cytomegalovirus (Liang, Y., et al., Targeting the JMJD2 histone demethylases to epigenetically control herpesvirus infection and reactivation from latency. Sci Transl Med, 2013. 5(167): p. 167ra5; Liang, Y., et al., Inhibition of the histone demethylase LSD1 blocks alpha-herpesvirus lytic replication and reactivation from latency. Nat Med, 2009. 15(11): p. 1312-7). In this setting, a LSD1 inhibitor showed antiviral activity by blocking viral replication and altering virus associated gene expression.

Recent studies have also shown that the inhibition of LSD1 by either genetic depletion or pharmacological intervention increased fetal globin gene expression in erythroid cells (Shi, L., et al., Lysine-specific demethylase 1 is a therapeutic target for fetal hemoglobin induction. Nat Med, 2013. 19(3): p. 291-4; Xu, J., et al., Corepressor-dependent silencing of fetal hemoglobin expression by BCL11A. Proc Natl Acad Sci USA, 2013. 110(16): p. 6518-23). Inducing fetal globin gene would be potentially therapeutically beneficial for the disease of β-globinopathies, including β-thalassemia and sickle cell disease where the production of normal β-globin, a component of adult hemoglobin, is impaired (Sankaran, V. G. and S. H. Orkin, The switch from fetal to adult hemoglobin. Cold Spring Harb Perspect Med, 2013. 3(1): p. a011643; Bauer, D. E., S. C. Kamran, and S. H. Orkin, Reawakening fetal hemoglobin: prospects for new therapies for the beta-globin disorders. Blood, 2012. 120(15): p. 2945-53). Moreover, LSD1 inhibition may potentiate other clinically used therapies, such as hydroxyurea or azacitidine. These agents may act, at least in part, by increasing γ-globin gene expression through different mechanisms.

In summary, LSD1 contributes to tumor development by altering epigenetic marks on histones and non-histone proteins. Accumulating data have validated that either genetic depletion or pharmacological intervention of LSD1 normalizes altered gene expressions, thereby inducing differentiation programs into mature cell types, decreasing cell proliferation, and promoting apoptosis in cancer cells. Therefore, LSD1 inhibitors alone or in combination with established therapeutic drugs would be effective to treat the diseases associated with LSD1 activity.

SUMMARY OF THE INVENTION

The present invention is directed to, inter alia, a compound of Formula I:

or a pharmaceutically acceptable salt thereof, wherein constituent variables are defined herein.

The present invention is further directed to a pharmaceutical composition comprising a compound of Formula I and at least one pharmaceutically acceptable carrier.

The present invention is further directed to a method of inhibiting LSD1 comprising contacting the LSD1 with a compound of Formula I.

The present invention is further directed to a method of treating an LSD1-mediated disease in a patient comprising administering to the patient a therapeutically effective amount of a compound of Formula I.

DETAILED DESCRIPTION

The present invention provides, inter alia, LSD1-inhibiting compounds such as a compound of Formula I:

or a pharmaceutically acceptable salt thereof, wherein:

X is N or CR^(X);

Y is (a) C═O and Z is NR^(Z) or (b) Y is CR³ and Z is N;

wherein the bond between Y and Z represented by

is a single bond in the case of (a) and a double bond in the case of (b);

Ring A is C₆₋₁₀ aryl or 5-10 membered heteroaryl comprising carbon and 1, 2, 3, or 4 heteroatoms selected from N, O, and S, wherein said C₆₋₁₀ aryl and 5-10 membered heteroaryl are each optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(A);

Ring B is C₆₋₁₀ aryl; 5-10 membered heteroaryl comprising carbon and 1, 2, 3 or 4 heteroatoms selected from N, O, and S; C₃₋₁₀ cycloalkyl; or 4-10 membered heterocycloalkyl comprising carbon and 1, 2, 3 or 4 heteroatoms selected from N, O, and S; wherein said C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, and 4-10 membered heterocycloalkyl are each optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(B);

R¹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, Cy¹, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), or S(O)₂NR^(c1)R^(d1), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy¹, halo, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), and S(O)₂NR^(c1)R^(d1);

R³ is H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, Cy², CN, OR^(a2), SR^(a2), C(O)R^(b2), C(O)NR^(c2)R^(d2), C(O)OR^(a2), NR^(c2)R^(d2), NR^(c2)C(O)R^(b2), NR^(c2)C(O)OR^(a2), NR^(c2)C(O)NR^(c2)R^(d2), C(═NR^(e2))R^(b2), C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)S(O)R^(b2), NR^(c2)S(O)₂R^(b2), NR^(c2)S(O)₂NR^(c2)R^(d2), S(O)R^(b2), S(O)NR^(c2)R^(d2), S(O)₂R^(b2), or S(O)₂NR^(c2)R^(d2), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy², halo, CN, OR^(a2), SR^(a2), C(O)R^(b2), C(O)NR^(c2)R^(d2), C(O)OR^(a2), OC(O)R^(b2), OC(O)NR^(c2)R^(d2), NR^(c2)R^(d2), NR^(c2)C(O)R^(b2), NR^(c2)C(O)OR^(a2), NR^(c2)C(O)NR^(c2)R^(d2), C(═NR^(e2))R^(b2), C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)S(O)R^(b2), NR^(c2)S(O)₂R^(b2), NR^(c2)S(O)₂NR^(c2)R^(d2), S(O)R^(b2), S(O)NR^(c2)R^(d2), S(O)₂R^(b2), and S(O)₂NR^(c2)R^(d2);

each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), SR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), OC(O)R^(b4), OC(O)NR^(c4)R^(d4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), NR^(c4)C(O)OR^(a4), NR^(c4)C(O)NR^(c4)R^(d4), C(═NR^(e4))R^(b4), C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)S(O)R^(b4), NR^(c4)S(O)₂R^(b4), NR^(c4)S(O)₂NR^(c4)R^(d4), S(O)R^(b4), S(O)NR^(c4)R^(d4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), SR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), OC(O)R^(b4), OC(O)NR^(c4)R^(d4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), NR^(c4)C(O)OR^(a4), NR^(c4)C(O)NR^(c4)R^(d4), C(═NR^(e4))R^(b4), C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)S(O)R^(b4), NR^(c4)S(O)₂R^(b4), NR^(c4)S(O)₂NR^(c4)R^(d4), S(O)R^(b4), S(O)NR^(c4)R^(d4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4);

each R^(B) is independently selected from Cy³, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), SR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), OC(O)R^(b5), OC(O)NR^(c5)R^(d5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), NR^(c5)C(O)OR^(a5), NR^(c5)C(O)NR^(c5)R^(d5), C(═NR^(e5))R^(b5), C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)S(O)R^(b5), NR^(c5)S(O)₂R^(b5), NR^(c5)S(O)₂NR^(c5)R^(d5), S(O)R^(b5), S(O)NR^(c5)R^(d5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from Cy³, halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), SR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), OC(O)R^(b5), OC(O)NR^(c5)R^(d5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), NR^(c5)C(O)OR^(a5), NR^(c5)C(O)NR^(c5)R^(d5), C(═NR^(e5))R^(b5), C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)S(O)R^(b5), NR^(c5)S(O)₂R^(b5), NR^(c5)S(O)₂NR^(c5)R^(d5), S(O)R^(b5), S(O)NR^(c5)R^(d5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5);

R^(X) is H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)OR^(a8), NR^(c8)C(O)NR^(c8)R^(d8), C(═NR^(e8))R^(b8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)S(O)R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), or S(O)₂NR^(c8)R^(d8);

R^(Z) is H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, or Cy⁴, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), SR^(a3), C(O)R^(b3), C(O)NR^(c3)R^(d3), C(O)OR^(a3), OC(O)R^(b3), OC(O)NR^(c3)R^(d3), NR^(c3)R^(d3), NR^(c8)C(O)R^(b3), NR^(c3)C(O)OR^(a3), NR^(c3)C(O)NR^(c3)R^(d3), C(═NR^(e3))R^(b3), C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)S(O)R^(b3), NR^(c3)S(O)₂R^(b3), NR^(c3)S(O)₂NR^(c3)R^(d3), S(O)R^(b3), S(O)NR^(c3)R^(d3), S(O)₂R^(b3), and S(O)₂NR^(c3)R^(d3);

each Cy¹, Cy², Cy³, Cy⁴, and Cy⁵ is independently selected from C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, and 4-10 membered heterocycloalkyl, each of which is optionally substituted with 1, 2, 3, or 4 substituents independently selected from R^(Cy);

each R^(Cy) is selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6), wherein said C₁₋₄ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, and (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted by 1, 2, or 3 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6);

each R^(a1) is independently selected from H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, and Cy⁵, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy⁵, halo, CN, OR^(a7), SR^(a7), C(O)R^(b7), C(O)NR^(c7)R^(d7), C(O)OR^(a7), OC(O)R^(b7), OC(O)NR^(c7)R^(d7), NR^(c7)R^(d7), NR^(c7)C(O)R^(b7), NR^(c7)C(O)OR^(a7), NR^(c7)C(O)NR^(c7)R^(d7), C(═NR^(e7))R^(b7), C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)S(O)R^(b7), NR^(c7)S(O)₂R^(b7), NR^(c7)S(O)₂NR^(c7)R^(d7), S(O)R^(b7), S(O)NR^(c7)R^(d7), S(O)₂R^(b7), and S(O)₂NR^(c7)R^(d7);

each R^(b1), R^(c1), and R^(d1) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c1) and R^(d1) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a2), R^(b2), R^(c2), and R^(d2) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c2) and R^(d2) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a3), R^(b3), R^(c3), and R^(d3) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c3) and R^(d3) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a4), R^(b4), R^(c4), and R^(d4) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c4) and R^(d4) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a5), R^(b5), R^(c5), and R^(d5) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c5) and R^(d5) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a6), R^(b6), R^(c6), and R^(d6) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c6) and R^(d6) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a7), R^(b7), R^(c7), and R^(d7) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c7) and R^(d7) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a8), R^(b8), R^(c8), and R^(d8) is independently selected from H, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein said C₁₋₄ alkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from OH, CN, amino, halo, C₁₋₄ alkyl, C₁₋₄ alkoxy, C₁₋₄ alkylthio, C₁₋₄ alkylamino, di(C₁₋₄ alkyl)amino, C₁₋₄ haloalkyl, and C₁₋₄ haloalkoxy; and

each R^(e1), R^(e2), R^(e3), R^(e4), R^(e5), R^(e6), R^(e7), and R^(e8) is independently selected from H, C₁₋₄ alkyl, and CN;

wherein when X is N; then Ring A is substituted by at least one R^(A) or Ring B is substituted by at least one R^(B).

In some embodiments:

X is N or CR^(X);

Y is (a) C═O and Z is NR^(Z) or (b) Y is CR³ and Z is N;

wherein the bond between Y and Z represented by

is a single bond in the case of (a) and a double bond in the case of (b);

Ring A is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(A);

Ring B is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(B);

R¹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, Cy¹, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), or S(O)₂NR^(c1)R^(d1), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy¹, halo, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), and S(O)₂NR^(c1)R^(d1);

R³ is H;

each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4);

each R^(B) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5);

R^(X) is H;

R^(Z) is H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, or Cy⁴, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), SR^(a3), C(O)R^(b3), C(O)NR^(c3)R^(d3), C(O)OR^(a3), OC(O)R^(b3), OC(O)NR^(c3)R^(d3), NR^(c3)R^(d3), NR^(c3)C(O)R^(b3), NR^(c3)C(O)OR^(a3), NR^(c3)C(O)NR^(c3)R^(d3), C(═NR^(e3))R^(b3), C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)S(O)R^(b3), NR^(c3)S(O)₂R^(b3), NR^(c3)S(O)₂NR^(c3)R^(d3), S(O)R^(b3), S(O)NR^(c3)R^(d3), S(O)₂R^(b3), and S(O)₂NR^(c3)R^(d3);

each Cy¹, Cy⁴, and Cy⁵ is independently selected from C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, and 4-10 membered heterocycloalkyl, each of which is optionally substituted with 1, 2, 3, or 4 substituents independently selected from R^(Cy);

each R^(Cy) is selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6), wherein said C₁₋₄ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, and (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted by 1, 2, or 3 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6);

each R^(a1) is independently selected from H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, and Cy⁵, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy⁵, halo, CN, OR^(a7), SR^(a7), C(O)R^(b7), C(O)NR^(c7)R^(d7), C(O)OR^(a7), OC(O)R^(b7), OC(O)NR^(c7)R^(d7), NR^(c7)R^(d7), NR^(c7)C(O)R^(b7), NR^(c7)C(O)OR^(a7), NR^(c7)C(O)NR^(c7)R^(d7), C(═NR^(e7))R^(b7), C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)S(O)R^(b7), NR^(c7)S(O)₂R^(b7), NR^(c7)S(O)₂NR^(c7)R^(d7), S(O)R^(b7), S(O)NR^(c7)R^(d7), S(O)₂R^(b7), and S(O)₂NR^(c7)R^(d7);

each R^(b1), R^(c1), and R^(d1) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c1) and R^(d1) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a3), R^(b3), R^(c3), and R^(d3) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c3) and R^(d3) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a4), R^(b4), R^(c4), and R^(d4) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c4) and R^(d4) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a5), R^(b5), R^(c5), and R^(d5) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c5) and R^(d5) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a6), R^(b6), R^(c6), and R^(d6) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c6) and R^(d6) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a7), R^(b7), R^(c7), and R^(d7) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c7) and R^(d7) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a8), R^(b8), R^(c8), and R^(d8) is independently selected from H, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein said C₁₋₄ alkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from OH, CN, amino, halo, C₁₋₄ alkyl, C₁₋₄ alkoxy, C₁₋₄ alkylthio, C₁₋₄ alkylamino, di(C₁₋₄ alkyl)amino, C₁₋₄ haloalkyl, and C₁₋₄ haloalkoxy; and

each R^(e1), R^(e3), R^(e6), R^(e7), and R^(e8) is independently selected from H, C₁₋₄ alkyl, and CN;

wherein when X is N; then Ring A is substituted by at least one R^(A) or Ring B is substituted by at least one R^(B).

In some embodiments:

X is N or CR^(X);

Y is (a) C═O and Z is NR^(Z) or (b) Y is CR³ and Z is N;

wherein the bond between Y and Z represented by

is a single bond in the case of (a) and a double bond in the case of (b);

Ring A is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(A);

Ring B is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(B);

R¹ is OR^(a1);

R³ is H;

each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4);

each R^(B) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5);

R^(X) is H;

R^(Z) is H, C₁₋₆ alkyl, or C₁₋₆ haloalkyl, wherein said C₁₋₆ alkyl is optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), C(O)NR^(c3)R^(d3), and NR^(c3)R^(d3);

-   -   each Cy⁴ is independently selected from phenyl, C₃₋₇ cycloalkyl,         5-6 membered heteroaryl, and 4-7 membered heterocycloalkyl, each         of which is optionally substituted with 1 or 2 substituents         independently selected from R^(Cy);

each Cy⁵ is independently selected from 4-7 membered heterocycloalkyl, each of which is optionally substituted with 1 or 2 substituents independently selected from R^(Cy);

each R^(Cy) is selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, NO₂, OR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6);

each R^(a1) is C₁₋₆ alkyl optionally substituted with Cy⁵;

-   -   each R^(a3), R^(c3), and R^(d3) is independently selected from         H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀         aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered         heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄         alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10         membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl,         C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10         membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀         aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered         heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered         heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted         with 1, 2, 3, 4, or 5 substituents independently selected from         C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8),         SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8),         OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8),         NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8),         C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8),         S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8),         NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c3) and R^(d3) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a4), R^(b4), R^(c4), and R^(d4) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c4) and R^(d4) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a5), R^(b5), R^(c5), and R^(d5) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c5) and R^(d5) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a6), R^(b6), R^(c6), and R^(d6) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

or any R^(c6) and R^(d6) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8);

each R^(a8), R^(b8), R^(c8), and R^(d8) is independently selected from H, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein said C₁₋₄ alkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from OH, CN, amino, halo, C₁₋₄ alkyl, C₁₋₄ alkoxy, C₁₋₄ alkylthio, C₁₋₄ alkylamino, di(C₁₋₄ alkyl)amino, C₁₋₄ haloalkyl, and C₁₋₄ haloalkoxy; and

each R^(e8) is independently selected from H, C₁₋₄ alkyl, and CN;

-   -   wherein when X is N; then Ring A is substituted by at least one         R^(A) or Ring B is substituted by at least one R^(B).

In some embodiments, X is N.

In some embodiments, X is CR^(X).

In some embodiments, Y is C═O and Z is NR^(Z).

In some embodiments, Y is CR³ and Z is N.

In some embodiments, Ring A is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(A).

In some embodiments, Ring A is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(A).

In some embodiments, Ring A is phenyl substituted by CN.

In some embodiments, Ring B is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(B).

In some embodiments, Ring B is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(B).

In some embodiments, Ring B is phenyl substituted by methyl.

In some embodiments, R³ is H.

In some embodiments, R^(Z) is H, C₁₋₆ alkyl, or C₁₋₆ haloalkyl, wherein said C₁₋₆ alkyl is optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), C(O)NR^(c3)R^(d3), and NR^(c3)R^(d3).

In some embodiments, R^(Z) is H, C₁₋₄ alkyl, or C₁₋₆ haloalkyl, wherein said C₁₋₄ alkyl is optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from OH, CN, F, phenyl, C₃₋₇ cyclalkyl, 5-6 membered heterocycloalkyl, 5-6 membered heteroaryl, C(O)NH₂, phenoxy, and dimethylamino, wherein said phenyl is optionally substituted by CN and said pyrazolyl is optionally substituted by methyl.

In some embodiments, R^(Z) is H, methyl, cyanomethyl, cyanoethyl, cyclopentylmethyl, tetrahydrofuranylmethyl, (1-methyl-1H-pyrazol-3-yl)methyl, morpholinylethyl, aminocarbonylmethyl, 3,3,3-trifluoro-2-hydroxypropyl, piperidinylmethyl, phenoxyethyl, dimethylaminoethyl, benzyl, cyanophenyl, or hydroxyethyl.

In some embodiments, R^(X) is H.

In some embodiments, each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4).

In some embodiments, R^(A) is CN.

In some embodiments, each R^(B) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5).

In some embodiments, R^(B) is C₁₋₆ alkyl.

In some embodiments, R^(B) is methyl.

In some embodiments, each R^(a1) is C₁₋₆ alkyl optionally substituted with Cy⁵.

In some embodiments, each R^(a1) is C₁₋₆ alkyl optionally substituted with 4-7 membered heterocycloalkyl.

In some embodiments, each R^(a1) is pyrrolidinylmethyl.

In some embodiments, each Cy⁴ is phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, and 5-6 membered heterocycloalkyl, each optionally substituted by one substituent independently selected from R^(Cy).

In some embodiments, each Cy⁴ is phenyl, cyclopentyl, tetrahydrofuranyl, pyrazolyl, morpholinyl, or piperidinyl, each optionally substituted by one substituent independently selected from methyl and CN.

In some embodiments, Cy⁵ is 4-7 heterocycloalkyl.

In some embodiments, Cy⁵ is pyrrolidinyl.

In some embodiments, the compounds of the invention have Formula IIa:

In some embodiments, the compounds of the invention have Formula IIb:

In some embodiments, the compounds of the invention have Formula IIIa or IIIb:

In some embodiments, the compounds of the invention have Formula IIIc or IIId:

In some embodiments, the compounds of the invention have Formula IVa:

wherein:

n is 0, 1, 2, 3, or 4; and

m is 0, 1, 2, 3, or 4.

In some embodiments, the compounds of the invention have Formula IVb:

wherein:

n is 0, 1, 2, 3, or 4; and

m is 0, 1, 2, 3, or 4.

In some embodiments, the compounds of the invention have Formula V:

In some embodiments, n is 0, 1, or 2.

In some embodiments, n is 1.

In some embodiments, m is 0, 1, or 2.

In some embodiments, m is 1.

It is appreciated that certain features of the invention, which are, for clarity, described in the context of separate embodiments, can also be provided in combination in a single embodiment. Conversely, various features of the invention which are, for brevity, described in the context of a single embodiment, can also be provided separately or in any suitable subcombination.

As used herein, the phrase “optionally substituted” means unsubstituted or substituted. As used herein, the term “substituted” means that a hydrogen atom is removed and replaced by a monovalent substituent, or two hydrogen atoms are replaced with a divalent substituent like a terminal oxo group. It is to be understood that substitution at a given atom is limited by valency.

Throughout the definitions, the term “C_(i-j)” indicates a range which includes the endpoints, wherein i and j are integers and indicate the number of carbons. Examples include C₁₋₄, C₁₋₆, and the like.

The term “z-membered” (where z is an integer) typically describes the number of ring-forming atoms in a moiety where the number of ring-forming atoms is z. For example, piperidinyl is an example of a 6-membered heterocycloalkyl ring, pyrazolyl is an example of a 5-membered heteroaryl ring, pyridyl is an example of a 6-membered heteroaryl ring, and 1,2,3,4-tetrahydro-naphthalene is an example of a 10-membered cycloalkyl group.

As used herein, the term “C_(i-j) alkyl,” employed alone or in combination with other terms, refers to a saturated hydrocarbon group that may be straight-chain or branched, having i to j carbons. In some embodiments, the alkyl group contains from 1 to 6 carbon atoms or from 1 to 4 carbon atoms, or from 1 to 3 carbon atoms. Examples of alkyl moieties include, but are not limited to, chemical groups such as methyl, ethyl, n-propyl, isopropyl, n-butyl, s-butyl, and t-butyl.

As used herein, the term “C_(i-j) alkoxy,” employed alone or in combination with other terms, refers to a group of formula —O-alkyl, wherein the alkyl group has i to j carbons. Example alkoxy groups include methoxy, ethoxy, and propoxy (e.g., n-propoxy and isopropoxy). In some embodiments, the alkyl group has 1 to 3 carbon atoms.

As used herein, “C_(i-j) alkenyl,” employed alone or in combination with other terms, refers to an unsaturated hydrocarbon group having one or more double carbon-carbon bonds and having i to j carbons. In some embodiments, the alkenyl moiety contains 2 to 6 or 2 to 4 carbon atoms. Example alkenyl groups include, but are not limited to, ethenyl, n-propenyl, isopropenyl, n-butenyl, sec-butenyl, and the like.

As used herein, “C_(i-j) alkynyl,” employed alone or in combination with other terms, refers to an unsaturated hydrocarbon group having one or more triple carbon-carbon bonds and having i to j carbons. Example alkynyl groups include, but are not limited to, ethynyl, propyn-1-yl, propyn-2-yl, and the like. In some embodiments, the alkynyl moiety contains 2 to 6 or 2 to 4 carbon atoms.

As used herein, the term “C_(i-j) alkylamino,” employed alone or in combination with other terms, refers to a group of formula —NH(alkyl), wherein the alkyl group has i to j carbon atoms. In some embodiments, the alkyl group has 1 to 6 or 1 to 4 carbon atoms. In some embodiments, the alkylamino group is —NH(C₁₋₄ alkyl) such as, for example, methylamino, ethylamino, or propylamino.

As used herein, the term “di-C_(i-j)-alkylamino,” employed alone or in combination with other terms, refers to a group of formula —N(alkyl)₂, wherein each of the two alkyl groups has, independently, i to j carbon atoms. In some embodiments, each alkyl group independently has 1 to 6 or 1 to 4 carbon atoms. In some embodiments, the dialkylamino group is —N(C₁₋₄ alkyl)₂ such as, for example, dimethylamino or diethylamino.

As used herein, the term “C_(i-j) alkylthio,” employed alone or in combination with other terms, refers to a group of formula —S-alkyl, wherein the alkyl group has i to j carbon atoms. In some embodiments, the alkyl group has 1 to 6 or 1 to 4 carbon atoms. In some embodiments, the alkylthio group is C₁₋₄ alkylthio such as, for example, methylthio or ethylthio.

As used herein, the term “amino,” employed alone or in combination with other terms, refers to a group of formula —NH₂.

As used herein, the term “aryl,” employed alone or in combination with other terms, refers to a monocyclic or polycyclic (e.g., having 2, 3 or 4 fused rings) aromatic hydrocarbon, such as, but not limited to, phenyl, 1-naphthyl, 2-naphthyl, anthracenyl, phenanthrenyl, and the like. In some embodiments, aryl is C₆₋₁₀ aryl. In some embodiments, the aryl group is a naphthalene ring or phenyl ring. In some embodiments, the aryl group is phenyl.

As used herein, the term “aryl-C_(i-j) alkyl,” employed alone or in combination with other terms, refers to an alkyl group substituted by an aryl group. An example of a aryl-C_(i-j) alkyl group is benzyl.

As used herein, the term “carbonyl”, employed alone or in combination with other terms, refers to a —C(O)— group.

As used herein, the term “C_(i-j) cycloalkyl,” employed alone or in combination with other terms, refers to a non-aromatic cyclic hydrocarbon moiety having i to j ring-forming carbon atoms, which may optionally contain one or more alkenylene groups as part of the ring structure. Cycloalkyl groups can include mono- or polycyclic (e.g., having 2, 3 or 4 fused rings) ring systems. Also included in the definition of cycloalkyl are moieties that have one or more aromatic rings fused (i.e. having a bond in common with) to the cycloalkyl ring, for example, benzo derivatives of cyclopentane, cyclopentene, cyclohexane, and the like. One or more ring-forming carbon atoms of a cycloalkyl group can be oxidized to form carbonyl linkages. In some embodiments, cycloalkyl is C₃₋₁₀ cycloalkyl, C₃₋₇ cycloalkyl, or C₅₋₆ cycloalkyl. Exemplary cycloalkyl groups include cyclopropyl, cyclobutyl, cyclopentyl, cyclohexyl, cycloheptyl, cyclopentenyl, cyclohexenyl, cyclohexadienyl, cycloheptatrienyl, norbornyl, norpinyl, norcarnyl, and the like. Further exemplary cycloalkyl groups include cyclopropyl, cyclobutyl, cyclopentyl, and cyclohexyl.

As used herein, the term “C_(i-j) cycloalkyl-C_(i-j) alkyl,” employed alone or in combination with other terms, refers to an alkyl group substituted by a cycloalkyl group. An example of a C_(i-j) cycloalkyl-C_(i-j) alkyl group is cyclopropylmethyl.

As used herein, “C_(i-j) haloalkoxy,” employed alone or in combination with other terms, refers to a group of formula —O-haloalkyl having i to j carbon atoms. An example haloalkoxy group is OCF₃. An additional example haloalkoxy group is OCHF₂. In some embodiments, the haloalkoxy group is fluorinated only. In some embodiments, the alkyl group has 1 to 6 or 1 to 4 carbon atoms. In some embodiments, the haloalkoxy group is C₁-4 haloalkoxy.

As used herein, the term “halo,” employed alone or in combination with other terms, refers to a halogen atom selected from F, Cl, I or Br. In some embodiments, “halo” refers to a halogen atom selected from F, Cl, or Br. In some embodiments, the halo substituent is F.

As used herein, the term “C_(i-j) haloalkyl,” employed alone or in combination with other terms, refers to an alkyl group having from one halogen atom to 2s+1 halogen atoms which may be the same or different, where “s” is the number of carbon atoms in the alkyl group, wherein the alkyl group has i to j carbon atoms. In some embodiments, the haloalkyl group is fluorinated only. In some embodiments, the haloalkyl group is fluoromethyl, difluoromethyl, or trifluoromethyl. In some embodiments, the haloalkyl group is trifluoromethyl. In some embodiments, the alkyl group has 1 to 6 or 1 to 4 carbon atoms.

As used herein, the term “heteroaryl,” employed alone or in combination with other terms, refers to a monocyclic or polycyclic (e.g., having 2, 3 or 4 fused rings) aromatic heterocylic moiety, having one or more heteroatom ring members selected from nitrogen, sulfur and oxygen. In some embodiments, the heteroaryl group has 1, 2, 3, or 4 heteroatom ring members. In some embodiments, the heteroaryl group has 1, 2, or 3 heteroatom ring members. In some embodiments, the heteroaryl group has 1 or 2 heteroatom ring members. In some embodiments, the heteroaryl group has 1 heteroatom ring member. In some embodiments, the heteroaryl group is 5- to 10-membered or 5- to 6-membered. In some embodiments, the heteroaryl group is 5-membered. In some embodiments, the heteroaryl group is 6-membered. When the heteroaryl group contains more than one heteroatom ring member, the heteroatoms may be the same or different. The nitrogen atoms in the ring(s) of the heteroaryl group can be oxidized to form N-oxides. Example heteroaryl groups include, but are not limited to, pyridine, pyrimidine, pyrazine, pyridazine, pyrrole, pyrazole, azolyl, oxazole, isoxazole, thiazole, isothiazole, imidazole, furan, thiophene, triazole, tetrazole, thiadiazole, quinoline, isoquinoline, indole, benzothiophene, benzofuran, benzisoxazole, imidazo[1,2-b]thiazole, purine, triazine, and the like.

A 5-membered heteroaryl is a heteroaryl group having five ring-forming atoms comprising wherein one or more of the ring-forming atoms are independently selected from N, O, and S. In some embodiments, the 5-membered heteroaryl group has 1, 2, or 3 heteroatom ring members. In some embodiments, the 5-membered heteroaryl group has 1 or 2 heteroatom ring members. In some embodiments, the 5-membered heteroaryl group has 1 heteroatom ring member. Example ring-forming members include CH, N, NH, O, and S. Example five-membered ring heteroaryls are thienyl, furyl, pyrrolyl, imidazolyl, thiazolyl, oxazolyl, pyrazolyl, isothiazolyl, isoxazolyl, 1,2,3-triazolyl, tetrazolyl, 1,2,3-thiadiazolyl, 1,2,3-oxadiazolyl, 1,2,4-triazolyl, 1,2,4-thiadiazolyl, 1,2,4-oxadiazolyl, 1,3,4-triazolyl, 1,3,4-thiadiazolyl, and 1,3,4-oxadiazolyl.

A 6-membered heteroaryl is a heteroaryl group having six ring-forming atoms wherein one or more of the ring-forming atoms is N. In some embodiments, the 6-membered heteroaryl group has 1, 2, or 3 heteroatom ring members. In some embodiments, the 6-membered heteroaryl group has 1 or 2 heteroatom ring members. In some embodiments, the 6-membered heteroaryl group has 1 heteroatom ring member. Example ring-forming members include CH and N. Example six-membered ring heteroaryls are pyridyl, pyrazinyl, pyrimidinyl, triazinyl, and pyridazinyl.

As used herein, the term “heteroaryl-C_(i-j) alkyl,” employed alone or in combination with other terms, refers to an alkyl group substituted by a heteroaryl group. An example of a heteroaryl-C_(i-j) alkyl group is pyridylmethyl.

As used herein, the term “heterocycloalkyl,” employed alone or in combination with other terms, refers to non-aromatic heterocyclic ring system, which may optionally contain one or more unsaturations as part of the ring structure, and which has at least one heteroatom ring member independently selected from nitrogen, sulfur and oxygen. In some embodiments, the heterocycloalkyl group has 1, 2, 3, or 4 heteroatom ring members. In some embodiments, the heterocycloalkyl group has 1, 2, or 3 heteroatom ring members. In some embodiments, the heterocycloalkyl group has 1 or 2 heteroatom ring members. In some embodiments, the heterocycloalkyl group has 1 heteroatom ring member. When the heterocycloalkyl group contains more than one heteroatom in the ring, the heteroatoms may be the same or different. Example ring-forming members include CH, CH₂, C(O), N, NH, O, S, S(O), and S(O)₂. Heterocycloalkyl groups can include mono- or polycyclic (e.g., having 2, 3 or 4 fused rings) ring systems, including spiro systems. Also included in the definition of heterocycloalkyl are moieties that have one or more aromatic rings fused (i.e., having a bond in common with) to the non-aromatic ring, for example, 1,2,3,4-tetrahydro-quinoline, dihydrobenzofuran and the like. The carbon atoms or heteroatoms in the ring(s) of the heterocycloalkyl group can be oxidized to form a carbonyl, sulfinyl, or sulfonyl group (or other oxidized linkage) or a nitrogen atom can be quaternized. In some embodiments, the heterocycloalkyl is 5- to 10-membered, 4- to 10-membered, 4- to 7-membered, 5-membered, or 6-membered. Examples of heterocycloalkyl groups include 1,2,3,4-tetrahydro-quinoline, dihydrobenzofuran, azetidine, azepane, pyrrolidine, piperidine, piperazine, morpholine, thiomorpholine, and pyran.

As used herein, the term “heterocycloalkyl-C_(i-j) alkyl,” employed alone or in combination with other terms, refers to an alkyl group substituted by a heterocycloalkyl group. An example of a heterocycloalkyl-C_(i-j) alkyl group is pyrrolidinylmethyl.

The compounds described herein can be asymmetric (e.g., having one or more stereocenters). All stereoisomers, such as enantiomers and diastereoisomers, are intended unless otherwise indicated. Compounds of the present invention that contain asymmetrically substituted carbon atoms can be isolated in optically active or racemic forms. Methods on how to prepare optically active forms from optically inactive starting materials are known in the art, such as by resolution of racemic mixtures or by stereoselective synthesis. Many geometric isomers of olefins, C═N double bonds, and the like can also be present in the compounds described herein, and all such stable isomers are contemplated in the present invention. Cis and trans geometric isomers of the compounds of the present invention are described and may be isolated as a mixture of isomers or as separated isomeric forms.

When the compounds of the invention contain a chiral center, the compounds can be any of the possible stereoisomers. In compounds with a single chiral center, the stereochemistry of the chiral center can be (R) or (S). In compounds with two chiral centers, the stereochemistry of the chiral centers can each be independently (R) or (S) so the configuration of the chiral centers can be (R) and (R), (R) and (S); (S) and (R), or (S) and (S). In compounds with three chiral centers, the stereochemistry each of the three chiral centers can each be independently (R) or (S) so the configuration of the chiral centers can be (R), (R) and (R); (R), (R) and (S); (R), (S) and (R); (R), (S) and (S); (S), (R) and (R); (S), (R) and (S); (S), (S) and (R); or (S), (S) and (S).

Resolution of racemic mixtures of compounds can be carried out by any of numerous methods known in the art. An example method includes fractional recrystallization using a chiral resolving acid which is an optically active, salt-forming organic acid. Suitable resolving agents for fractional recrystallization methods are, for example, optically active acids, such as the D and L forms of tartaric acid, diacetyltartaric acid, dibenzoyltartaric acid, mandelic acid, malic acid, lactic acid or the various optically active camphorsulfonic acids such as β-camphorsulfonic acid. Other resolving agents suitable for fractional crystallization methods include stereoisomerically pure forms of α-methylbenzylamine (e.g., S and R forms, or diastereoisomerically pure forms), 2-phenylglycinol, norephedrine, ephedrine, N-methylephedrine, cyclohexylethylamine, 1,2-diaminocyclohexane, and the like.

Resolution of racemic mixtures can also be carried out by elution on a column packed with an optically active resolving agent (e.g., dinitrobenzoylphenylglycine). Suitable elution solvent composition can be determined by one skilled in the art.

Compounds of the invention also include tautomeric forms. Tautomeric forms result from the swapping of a single bond with an adjacent double bond together with the concomitant migration of a proton. Tautomeric forms include prototropic tautomers which are isomeric protonation states having the same empirical formula and total charge. Example prototropic tautomers include ketone—enol pairs, amide—imidic acid pairs, lactam—lactim pairs, amide—imidic acid pairs, enamine—imine pairs, and annular forms where a proton can occupy two or more positions of a heterocyclic system, for example, 1H- and 3H-imidazole, 1H-, 2H- and 4H-1,2,4-triazole, 1H- and 2H-isoindole, and 1H- and 2H-pyrazole. Tautomeric forms can be in equilibrium or sterically locked into one form by appropriate substitution.

Compounds of the invention can also include all isotopes of atoms occurring in the intermediates or final compounds. Isotopes include those atoms having the same atomic number but different mass numbers.

The term “compound” as used herein is meant to include all stereoisomers, geometric isomers, tautomers, and isotopes of the structures depicted. Compounds herein identified by name or structure as one particular tautomeric form are intended to include other tautomeric forms unless otherwise specified (e.g., in the case of purine rings, unless otherwise indicated, when the compound name or structure has the 9H tautomer, it is understood that the 7H tautomer is also encompassed).

All compounds, and pharmaceutically acceptable salts thereof, can be found together with other substances such as water and solvents (e.g., hydrates and solvates) or can be isolated.

In some embodiments, the compounds of the invention, or salts thereof, are substantially isolated. By “substantially isolated” is meant that the compound is at least partially or substantially separated from the environment in which it was formed or detected. Partial separation can include, for example, a composition enriched in a compound of the invention. Substantial separation can include compositions containing at least about 50%, at least about 60%, at least about 70%, at least about 80%, at least about 90%, at least about 95%, at least about 97%, or at least about 99% by weight of the compounds of the invention, or salt thereof. Methods for isolating compounds and their salts are routine in the art.

The phrase “pharmaceutically acceptable” is employed herein to refer to those compounds, materials, compositions, and/or dosage forms which are, within the scope of sound medical judgment, suitable for use in contact with the tissues of human beings and animals without excessive toxicity, irritation, allergic response, or other problem or complication, commensurate with a reasonable benefit/risk ratio.

The expressions “ambient temperature” and “room temperature,” as used herein, are understood in the art, and refer generally to a temperature, e.g., a reaction temperature, that is about the temperature of the room in which the reaction is carried out, for example, a temperature from about 20° C. to about 30° C.

The present invention also includes pharmaceutically acceptable salts of the compounds described herein. As used herein, “pharmaceutically acceptable salts” refers to derivatives of the disclosed compounds wherein the parent compound is modified by converting an existing acid or base moiety to its salt form. Examples of pharmaceutically acceptable salts include, but are not limited to, mineral or organic acid salts of basic residues such as amines; alkali or organic salts of acidic residues such as carboxylic acids; and the like. The pharmaceutically acceptable salts of the present invention include the conventional non-toxic salts of the parent compound formed, for example, from non-toxic inorganic or organic acids. The pharmaceutically acceptable salts of the present invention can be synthesized from the parent compound which contains a basic or acidic moiety by conventional chemical methods. Generally, such salts can be prepared by reacting the free acid or base forms of these compounds with a stoichiometric amount of the appropriate base or acid in water or in an organic solvent, or in a mixture of the two; generally, non-aqueous media like ether, ethyl acetate, alcohols (e.g., methanol, ethanol, iso-propanol, or butanol) or acetonitrile (MeCN) are preferred. Lists of suitable salts are found in Remington's Pharmaceutical Sciences, 17^(th) Ed., (Mack Publishing Company, Easton, 1985), p. 1418, Berge et al., J. Pharm. Sci., 1977, 66(1), 1-19, and in Stahl et al., Handbook of Pharmaceutical Salts: Properties, Selection, and Use, (Wiley, 2002).

The following abbreviations may be used herein: AcOH (acetic acid); Ac₂O (acetic anhydride); aq. (aqueous); atm. (atmosphere(s)); Boc (t-butoxycarbonyl); BOP ((benzotriazol-1-yloxy)tris(dimethylamino)phosphonium hexafluorophosphate); br (broad); Cbz (carboxybenzyl); calc. (calculated); d (doublet); dd (doublet of doublets); DBU (1,8-diazabicyclo[5.4.0]undec-7-ene); DCM (dichloromethane); DIAD (N,N′-diisopropyl azidodicarboxylate); DIEA (N,N-diisopropylethylamine); DIPEA (N,N-diisopropylethylamine); DMF (N,N-dimethylformamide); Et (ethyl); EtOAc (ethyl acetate); g (gram(s)); h (hour(s)); HATU (N,N,N′,N′-tetramethyl-O-(7-azabenzotriazol-1-yl)uronium hexafluorophosphate); HCl (hydrochloric acid); HPLC (high performance liquid chromatography); Hz (hertz); IPA (isopropyl alcohol); J (coupling constant); LCMS (liquid chromatography-mass spectrometry); m (multiplet); M (molar); mCPBA (3-chloroperoxybenzoic acid); MS (Mass spectrometry); Me (methyl); MeCN (acetonitrile); MeOH (methanol); mg (milligram(s)); min. (minutes(s)); mL (milliliter(s)); mmol (millimole(s)); N (normal); nM (nanomolar); NMP (N-methylpyrrolidinone); NMR (nuclear magnetic resonance spectroscopy); OTf (trifluoromethanesulfonate); Ph (phenyl); pM (picomolar); RP-HPLC (reverse phase high performance liquid chromatography); s (singlet); t (triplet or tertiary); TBS (tert-butyldimethylsilyl); tert (tertiary); tt (triplet of triplets); TFA (trifluoroacetic acid); THF (tetrahydrofuran); μg (microgram(s)); μL (microliter(s)); μM (micromolar); wt % (weight percent).

Synthesis

Compounds of the invention, including salts thereof, can be prepared using known organic synthesis techniques and can be synthesized according to any of numerous possible synthetic routes.

The reactions for preparing compounds of the invention can be carried out in suitable solvents which can be readily selected by one of skill in the art of organic synthesis. Suitable solvents can be substantially non-reactive with the starting materials (reactants), the intermediates, or products at the temperatures at which the reactions are carried out, e.g., temperatures which can range from the solvent's freezing temperature to the solvent's boiling temperature. A given reaction can be carried out in one solvent or a mixture of more than one solvent. Depending on the particular reaction step, suitable solvents for a particular reaction step can be selected by the skilled artisan.

Preparation of compounds of the invention can involve the protection and deprotection of various chemical groups. The need for protection and deprotection, and the selection of appropriate protecting groups, can be readily determined by one skilled in the art. The chemistry of protecting groups can be found, for example, in P. G. M. Wuts and T. W. Greene, Protective Groups in Organic Synthesis, 4^(th) Ed., Wiley & Sons, Inc., New York (2006), which is incorporated herein by reference in its entirety.

Reactions can be monitored according to any suitable method known in the art. For example, product formation can be monitored by spectroscopic means, such as nuclear magnetic resonance spectroscopy (e.g., ¹H or ¹³C), infrared spectroscopy, spectrophotometry (e.g., UV-visible), mass spectrometry, or by chromatographic methods such as high performance liquid chromatography (HPLC), liquid chromatography-mass spectroscopy (LCMS), or thin layer chromatography (TLC). Compounds can be purified by those skilled in the art by a variety of methods, including high performance liquid chromatography (HPLC) (“Preparative LC-MS Purification: Improved Compound Specific Method Optimization” Karl F. Blom, Brian Glass, Richard Sparks, Andrew P. Combs J. Combi. Chem. 2004, 6(6), 874-883, which is incorporated herein by reference in its entirety) and normal phase silica chromatography.

Compounds of formula 12 can be prepared according to Scheme 1. A selective cross coupling of iodide in compound 1 with compound of formula 2 under standard cross coupling conditions, such as standard Suzuki coupling conditions [e.g., M is boronic acid or ester, in the presence of a palladium catalyst and a suitable base such as potassium carbonate], or Negishi coupling conditions [e.g., M is Zn-halo, in the presence of a palladium catalyst] can give compounds of formula 3. Protection of the phenol group in compound 3 with a suitable protecting group (PG) such as methyl or benzyl by reacting with methyl iodide or benzyl chloride in the presence a suitable base such as potassium carbonate can generate compounds of formula 4. Introduction of the hydrazine moiety can be achieved via SNAr displacement of the chloride in compound 4 with hydrazine to give compound 5. A condensation reaction can be performed between compound 5 with compound of formula 6 at elevated temperature to produce compound 7. Installation of ring A can be achieved via coupling of boronic ester or boronic acid of formula 8 with compound 7 under standard Suzuki coupling conditions to give compound 9, which can be deprotected (e.g. BBr₃ to remove methyl protecting group, or hydrogenation to remove benzyl group) to give the phenol derivative 10. The phenol 10 can be converted to triflate 11 using standard conditions (e.g., with triflic anhydride in the presence of a suitable base such as pyridine). The triflate group of compound 11 can be coupled to R¹-M to afford the final product of formula 12 under standard cross coupling conditions, such as Suzuki coupling conditions (when M is boronic acid or boronic ester), or standard Negishi reaction conditions (when M is Zn-halo), or standard Buchwald amination conditions (e.g. in the presence of a palladium catalyst and a suitable base such as Cs₂CO₃, when M is H and attached to nitrogen atom of R¹), or standard Ullmann coupling conditions (R¹-M is an alcohol with M=H, in the presence of a palladium or copper catalyst). Alternatively, when R¹ in compound 12 is an alkoxyl group with oxygen attached to the center ring, compound 12 can be prepared by an alkylation reaction of compound 10 with a suitable alkylating reagent in the presence a suitable base such as potassium carbonate or a Mitsunobu reaction of compound 10 with an appropriate alcohol in the presence of diethyl azodicarboxylate (DEAD) and triphenylphosphine (PPh₃).

Synthetic route as shown in Scheme 2 can be followed to prepare compounds of formula 22. Toward this end, the amino group in compound 13 can be first converted to a hydroxyl group (e.g., in the presence of NaNO₂ in H₂SO₄) to give compound 14. Installation of ring B can be achieved by coupling of a compound 14 with a compound of formula 2 using similar conditions as described in Scheme 1 (e.g., Suzuki coupling, Negishi reaction or Buchwald amination conditions) to give compound 15. Suzuki coupling of compound 15 with boronic ester or acid of formula 8 can generate compound 16. Protection of the phenol group in compound 16 with a suitable protecting group (PG) such as methyl or benzyl (e.g., by reacting with methyl iodide or benzyl chloride in the presence of a suitable base such as potassium carbonate) can give compound 17. Installation of a chlorine substituent onto the pyrazine ring can be achieved by a two-step sequence [e.g., oxidation with meta-chloroperoxybenzoic acid (m-CPBA), followed by treatment with POCl₃] to give compound 18, followed by a SNAr displacement of the chlorine with hydrazine to generate compound 19. Condensation of compound 19 with compound of formula 6 can give the bicyclic compound 20. Removal of the protecting group PG can reveal the phenol group which can react with triflic anhydride to generate the triflate 21. The triflate group of compound 21 can be coupled to R¹-M under standard cross coupling reactions as described in Scheme 1 (e.g., Suzuki coupling, Negishi coupling, Buchwald amination or Ullmann coupling conditions) to give compound of formula 22. Alternatively, if R¹ is an alkoxyl group with oxygen attached to the pyrazine ring, the protection step of compound 16 can be replaced by an ether formation reaction (e.g., alkylation in the presence of a base such as potassium carbonate, or Mitsunobu reaction with DEAD and Ph₃P) to introduce the R¹ then following similar reaction sequences as described above can give the final ether compound 22.

Compounds of formula 28 can be prepared using procedures as outlined in Scheme 3 starting from compounds of formula 23 which can be prepared as described in Scheme 1 or Scheme 2. Treatment of the hydrazine derivative 23 with carbonyl diimidazole or equivalent can generate compound 24, which can undergo Suzuki coupling with boronic ester/acid 8 to install ring A to give compound 25. Alkylation of compound 25 with an appropriate alkylating reagent R²-Lg (Lg is a leaving group such as Cl or Br) in the presence of a suitable base such as potassium carbonate can give compound 26. Alternatively, if R² is an aromatic group, the coupling of R²-Lg to compound 25 can be performed under Buchwald amination conditions (e.g., in the presence of a palladium catalyst and a suitable base). Removal of the protecting group PG in compound 26, followed by reacting with triflic anhydride (Tf₂O) can give the triflate 27. The triflate group of compound 27 can be coupled to R¹-M using similar procedures (e.g., Suzuki coupling, Negishi coupling, Buchwald amination, or Ullmann coupling conditions) as described in Scheme 1 to give the final compound of formula 28. For compound 28 with R¹ as an ether group, the ether moiety can also be introduced using similar procedures as described in Scheme 1 or Scheme 2.

Methods of Use

Compounds of the invention are LSD1 inhibitors and, thus, are useful in treating diseases and disorders associated with activity of LSD1. For the uses described herein, any of the compounds of the invention, including any of the embodiments thereof, may be used.

In some embodiments, the compounds of the invention are selective for LSD1 over LSD2, meaning that the compounds bind to or inhibit LSD1 with greater affinity or potency, compared to LSD2. In general, selectivity can be at least about 5-fold, at least about 10-fold, at least about 20-fold, at least about 50-fold, at least about 100-fold, at least about 200-fold, at least about 500-fold or at least about 1000-fold.

As inhibitors of LSD1, the compounds of the invention are useful in treating LSD1-mediated diseases and disorders. The term “LSD1-mediated disease” or “LSD1-mediated disorder” refers to any disease or condition in which LSD1 plays a role, or where the disease or condition is associated with expression or activity of LSD1. The compounds of the invention can therefore be used to treat or lessen the severity of diseases and conditions where LSD1 is known to play a role.

Diseases and conditions treatable using the compounds of the invention include generally cancers, inflammation, autoimmune diseases, viral induced pathogenesis, beta-globinopathies, and other diseases linked to LSD1 activity.

Cancers treatable using compounds according to the present invention include, for example, hematological cancers, sarcomas, lung cancers, gastrointestinal cancers, genitourinary tract cancers, liver cancers, bone cancers, nervous system cancers, gynecological cancers, and skin cancers.

Example hematological cancers include, for example, lymphomas and leukemias such as acute lymphoblastic leukemia (ALL), acute myelogenous leukemia (AML), acute promyelocytic leukemia (APL), chronic lymphocytic leukemia (CLL), chronic myelogenous leukemia (CML), diffuse large B-cell lymphoma (DLBCL), mantle cell lymphoma, Non-Hodgkin lymphoma (including relapsed or refractory NHL and recurrent follicular), Hodgkin lymphoma, myeloproliferative diseases (e.g., primary myelofibrosis (PMF), polycythemia vera (PV), essential thrombocytosis (ET)), myelodysplasia syndrome (MDS), and multiple myeloma.

Example sarcomas include, for example, chondrosarcoma, Ewing's sarcoma, osteosarcoma, rhabdomyosarcoma, angiosarcoma, fibrosarcoma, liposarcoma, myxoma, rhabdomyoma, fibroma, lipoma, harmatoma, and teratoma.

Example lung cancers include, for example, non-small cell lung cancer (NSCLC), bronchogenic carcinoma (squamous cell, undifferentiated small cell, undifferentiated large cell, adenocarcinoma), alveolar (bronchiolar) carcinoma, bronchial adenoma, chondromatous hamartoma, and mesothelioma.

Example gastrointestinal cancers include, for example, cancers of the esophagus (squamous cell carcinoma, adenocarcinoma, leiomyosarcoma, lymphoma), stomach (carcinoma, lymphoma, leiomyosarcoma), pancreas (ductal adenocarcinoma, insulinoma, glucagonoma, gastrinoma, carcinoid tumors, vipoma), small bowel (adenocarcinoma, lymphoma, carcinoid tumors, Kaposi's sarcoma, leiomyoma, hemangioma, lipoma, neurofibroma, fibroma), large bowel (adenocarcinoma, tubular adenoma, villous adenoma, hamartoma, leiomyoma), and colorectal cancer.

Example genitourinary tract cancers include, for example, cancers of the kidney (adenocarcinoma, Wilm's tumor [nephroblastoma]), bladder and urethra (squamous cell carcinoma, transitional cell carcinoma, adenocarcinoma), prostate (adenocarcinoma, sarcoma), and testis (seminoma, teratoma, embryonal carcinoma, teratocarcinoma, choriocarcinoma, sarcoma, interstitial cell carcinoma, fibroma, fibroadenoma, adenomatoid tumors, lipoma).

Example liver cancers include, for example, hepatoma (hepatocellular carcinoma), cholangiocarcinoma, hepatoblastoma, angiosarcoma, hepatocellular adenoma, and hemangioma.

Example bone cancers include, for example, osteogenic sarcoma (osteosarcoma), fibrosarcoma, malignant fibrous histiocytoma, chondrosarcoma, Ewing's sarcoma, malignant lymphoma (reticulum cell sarcoma), multiple myeloma, malignant giant cell tumor chordoma, osteochronfroma (osteocartilaginous exostoses), benign chondroma, chondroblastoma, chondromyxofibroma, osteoid osteoma, and giant cell tumors

Example nervous system cancers include, for example, cancers of the skull (osteoma, hemangioma, granuloma, xanthoma, osteitis deformans), meninges (meningioma, meningiosarcoma, gliomatosis), brain (astrocytoma, meduoblastoma, glioma, ependymoma, germinoma (pinealoma), glioblastoma multiform, oligodendroglioma, schwannoma, retinoblastoma, congenital tumors), and spinal cord (neurofibroma, meningioma, glioma, sarcoma), as well as neuroblastoma and Lhermitte-Duclos disease.

Example gynecological cancers include, for example, cancers of the uterus (endometrial carcinoma), cervix (cervical carcinoma, pre-tumor cervical dysplasia), ovaries (ovarian carcinoma (serous cystadenocarcinoma, mucinous cystadenocarcinoma, unclassified carcinoma), granulosa-thecal cell tumors, Sertoli-Leydig cell tumors, dysgerminoma, malignant teratoma), vulva (squamous cell carcinoma, intraepithelial carcinoma, adenocarcinoma, fibrosarcoma, melanoma), vagina (clear cell carcinoma, squamous cell carcinoma, botryoid sarcoma (embryonal rhabdomyosarcoma), and fallopian tubes (carcinoma).

Example skin cancers include, for example, melanoma, basal cell carcinoma, squamous cell carcinoma, Kaposi's sarcoma, moles dysplastic nevi, lipoma, angioma, dermatofibroma, and keloids.

The compounds of the invention can further be used to treat cancer types where LSD1 may be overexpressed including, for example, breast, prostate, head and neck, laryngeal, oral, and thyroid cancers (e.g., papillary thyroid carcinoma).

The compounds of the invention can further be used to treat genetic disorders such as Cowden syndrome and Bannayan-Zonana syndrome.

The compounds of the invention can further be used to treat viral diseases such as herpes simplex virus (HSV), varicella zoster virus (VZV), human cytomegalovirus, hepatitis B virus (HBV), and adenovirus.

The compounds of the invention can further be used to treat beta-globinopathies including, for example, beta-thalassemia and sickle cell anemia.

As used herein, the term “contacting” refers to the bringing together of indicated moieties in an in vitro system or an in vivo system. For example, “contacting” a LSD1 protein with a compound of the invention includes the administration of a compound of the present invention to an individual or patient, such as a human, having a LSD1 protein, as well as, for example, introducing a compound of the invention into a sample containing a cellular or purified preparation containing the LSD1 protein.

As used herein, the term “individual” or “patient,” used interchangeably, refers to any animal, including mammals, preferably mice, rats, other rodents, rabbits, dogs, cats, swine, cattle, sheep, horses, or primates, and most preferably humans.

As used herein, the phrase “therapeutically effective amount” refers to the amount of active compound or pharmaceutical agent that elicits the biological or medicinal response that is being sought in a tissue, system, animal, individual or human by a researcher, veterinarian, medical doctor or other clinician.

As used herein, the term “treating” or “treatment” refers to inhibiting the disease; for example, inhibiting a disease, condition or disorder in an individual who is experiencing or displaying the pathology or symptomatology of the disease, condition or disorder (i.e., arresting further development of the pathology and/or symptomatology) or ameliorating the disease; for example, ameliorating a disease, condition or disorder in an individual who is experiencing or displaying the pathology or symptomatology of the disease, condition or disorder (i.e., reversing the pathology and/or symptomatology) such as decreasing the severity of disease.

As used herein, the term “preventing” or “prevention” refers to preventing the disease; for example, preventing a disease, condition or disorder in an individual who may be predisposed to the disease, condition or disorder but does not yet experience or display the pathology or symptomatology of the disease.

Combination Therapies

The compounds of the invention can be used in combination treatments where the compound of the invention is administered in conjunction with other treatments such as the administration of one or more additional therapeutic agents. The additional therapeutic agents are typically those which are normally used to treat the particular condition to be treated. The additional therapeutic agents can include, e.g., chemotherapeutics, anti-inflammatory agents, steroids, immunosuppressants, as well as Bcr-Abl, Flt-3, RAF, FAK, JAK, PIM, PI3K inhibitors for treatment of LSD1-mediated diseases, disorders or conditions. The one or more additional pharmaceutical agents can be administered to a patient simultaneously or sequentially.

In some embodiments, the compounds of the invention can be used in combination with a therapeutic agent that targets an epigenetic regulator. Examples of epigenetic regulators include the histone lysine methyltransferases, histone arginine methyl transferases, histone demethylases, histone deacetylases, histone acetylases, and DNA methyltransferases. Histone deacetylase inhibitors include, e.g., vorinostat.

For treating cancer and other proliferative diseases, the compounds of the invention can be used in combination with chemotherapeutic agents, agonists or antagonists of nuclear receptors, or other anti-proliferative agents. The compounds of the invention can also be used in combination with medical therapy such as surgery or radiotherapy, e.g., gamma-radiation, neutron beam radiotherapy, electron beam radiotherapy, proton therapy, brachytherapy, and systemic radioactive isotopes. Examples of suitable chemotherapeutic agents include any of: abarelix, aldesleukin, alemtuzumab, alitretinoin, allopurinol, altretamine, anastrozole, arsenic trioxide, asparaginase, azacitidine, bevacizumab, bexarotene, bleomycin, bortezombi, bortezomib, busulfan intravenous, busulfan oral, calusterone, capecitabine, carboplatin, carmustine, cetuximab, chlorambucil, cisplatin, cladribine, clofarabine, cyclophosphamide, cytarabine, dacarbazine, dactinomycin, dalteparin sodium, dasatinib, daunorubicin, decitabine, denileukin, denileukin diftitox, dexrazoxane, docetaxel, doxorubicin, dromostanolone propionate, eculizumab, epirubicin, erlotinib, estramustine, etoposide phosphate, etoposide, exemestane, fentanyl citrate, filgrastim, floxuridine, fludarabine, fluorouracil, fulvestrant, gefitinib, gemcitabine, gemtuzumab ozogamicin, goserelin acetate, histrelin acetate, ibritumomab tiuxetan, idarubicin, ifosfamide, imatinib mesylate, interferon alfa 2a, irinotecan, lapatinib ditosylate, lenalidomide, letrozole, leucovorin, leuprolide acetate, levamisole, lomustine, meclorethamine, megestrol acetate, melphalan, mercaptopurine, methotrexate, methoxsalen, mitomycin C, mitotane, mitoxantrone, nandrolone phenpropionate, nelarabine, nofetumomab, oxaliplatin, paclitaxel, pamidronate, panitumumab, pegaspargase, pegfilgrastim, pemetrexed disodium, pentostatin, pipobroman, plicamycin, procarbazine, quinacrine, rasburicase, rituximab, ruxolitinib, sorafenib, streptozocin, sunitinib, sunitinib maleate, tamoxifen, temozolomide, teniposide, testolactone, thalidomide, thioguanine, thiotepa, topotecan, toremifene, tositumomab, trastuzumab, tretinoin, uracil mustard, valrubicin, vinblastine, vincristine, vinorelbine, vorinostat, and zoledronate.

For treating cancer and other proliferative diseases, the compounds of the invention can be used in combination with ruxolitinib.

For treating autoimmune or inflammatory conditions, the compound of the invention can be administered in combination with a corticosteroid such as triamcinolone, dexamethasone, fluocinolone, cortisone, prednisolone, or flumetholone.

For treating autoimmune or inflammatory conditions, the compound of the invention can be administered in combination with an immune suppressant such as fluocinolone acetonide (Retisert®), rimexolone (AL-2178, Vexol, Alcon), or cyclosporine (Restasis®).

For treating autoimmune or inflammatory conditions, the compound of the invention can be administered in combination with one or more additional agents selected from Dehydrex™ (Holles Labs), Civamide (Opko), sodium hyaluronate (Vismed, Lantibio/TRB Chemedia), cyclosporine (ST-603, Sirion Therapeutics), ARG101(T) (testosterone, Argentis), AGR1012(P) (Argentis), ecabet sodium (Senju-Ista), gefarnate (Santen), 15-(s)-hydroxyeicosatetraenoic acid (15(S)-HETE), cevilemine, doxycycline (ALTY-0501, Alacrity), minocycline, iDestrin™ (NP50301, Nascent Pharmaceuticals), cyclosporine A (Nova22007, Novagali), oxytetracycline (Duramycin, MOLI1901, Lantibio), CF101 (2S,3S,4R,5R)-3,4-dihydroxy-5-[6-[(3-iodophenyl)methylamino]purin-9-yl]-N-methyl-oxolane-2-carbamyl, Can-Fite Biopharma), voclosporin (LX212 or LX214, Lux Biosciences), ARG103 (Agentis), RX-10045 (synthetic resolvin analog, Resolvyx), DYN15 (Dyanmis Therapeutics), rivoglitazone (DE011, Daiichi Sanko), TB4 (RegeneRx), OPH-01 (Ophtalmis Monaco), PCS101 (Pericor Science), REV1-31 (Evolutec), Lacritin (Senju), rebamipide (Otsuka-Novartis), OT-551 (Othera), PAI-2 (University of Pennsylvania and Temple University), pilocarpine, tacrolimus, pimecrolimus (AMS981, Novartis), loteprednol etabonate, rituximab, diquafosol tetrasodium (INS365, Inspire), KLS-0611 (Kissei Pharmaceuticals), dehydroepiandrosterone, anakinra, efalizumab, mycophenolate sodium, etanercept (Embrel®), hydroxychloroquine, NGX267 (TorreyPines Therapeutics), or thalidomide.

For treating beta-thalassemia or sickle cell disease, the compound of the invention can be administered in combination with one or more additional agents such as Hydrea® (hydroxyurea).

In some embodiments, the compound of the invention can be administered in combination with one or more agents selected from an antibiotic, antiviral, antifungal, anesthetic, anti-inflammatory agents including steroidal and non-steroidal anti-inflammatories, and anti-allergic agents. Examples of suitable medicaments include aminoglycosides such as amikacin, gentamycin, tobramycin, streptomycin, netilmycin, and kanamycin; fluoroquinolones such as ciprofloxacin, norfloxacin, ofloxacin, trovafloxacin, lomefloxacin, levofloxacin, and enoxacin; naphthyridine; sulfonamides; polymyxin; chloramphenicol; neomycin; paramomycin; colistimethate; bacitracin; vancomycin; tetracyclines; rifampin and its derivatives (“rifampins”); cycloserine; beta-lactams; cephalosporins; amphotericins; fluconazole; flucytosine; natamycin; miconazole; ketoconazole; corticosteroids; diclofenac; flurbiprofen; ketorolac; suprofen; cromolyn; lodoxamide; levocabastin; naphazoline; antazoline; pheniramine; or azalide antibiotic.

Other examples of agents, one or more of which a provided compound may also be combined with include: a treatment for Alzheimer's Disease such as donepezil and rivastigmine; a treatment for Parkinson's Disease such as L-DOPA/carbidopa, entacapone, ropinirole, pramipexole, bromocriptine, pergolide, trihexyphenidyl, and amantadine; an agent for treating multiple sclerosis (MS) such as beta interferon (e.g., Avonex® and Rebif®), glatiramer acetate, and mitoxantrone; a treatment for asthma such as albuterol and montelukast; an agent for treating schizophrenia such as zyprexa, risperdal, seroquel, and haloperidol; an anti-inflammatory agent such as a corticosteroid, such as dexamethasone or prednisone, a TNF blocker, IL-1 RA, azathioprine, cyclophosphamide, and sulfasalazine; an immunomodulatory agent, including immunosuppressive agents, such as cyclosporin, tacrolimus, rapamycin, mycophenolate mofetil, an interferon, a corticosteroid, cyclophosphamide, azathioprine, and sulfasalazine; a neurotrophic factor such as an acetylcholinesterase inhibitor, an MAO inhibitor, an interferon, an anti-convulsant, an ion channel blocker, riluzole, or an anti-Parkinson's agent; an agent for treating cardiovascular disease such as a beta-blocker, an ACE inhibitor, a diuretic, a nitrate, a calcium channel blocker, or a statin; an agent for treating liver disease such as a corticosteroid, cholestyramine, an interferon, and an anti-viral agent; an agent for treating blood disorders such as a corticosteroid, an anti-leukemic agent, or a growth factor; or an agent for treating immunodeficiency disorders such as gamma globulin.

Formulation, Dosage Forms and Administration

When employed as pharmaceuticals, the compounds of the invention can be administered in the form of pharmaceutical compositions. These compositions can be prepared in a manner well known in the pharmaceutical art, and can be administered by a variety of routes, depending upon whether local or systemic treatment is desired and upon the area to be treated. Administration may be topical (including transdermal, epidermal, ophthalmic and to mucous membranes including intranasal, vaginal and rectal delivery), pulmonary (e.g., by inhalation or insufflation of powders or aerosols, including by nebulizer; intratracheal or intranasal), oral or parenteral. Parenteral administration includes intravenous, intraarterial, subcutaneous, intraperitoneal intramuscular or injection or infusion; or intracranial, e.g., intrathecal or intraventricular, administration. Parenteral administration can be in the form of a single bolus dose, or may be, for example, by a continuous perfusion pump. Pharmaceutical compositions and formulations for topical administration may include transdermal patches, ointments, lotions, creams, gels, drops, suppositories, sprays, liquids and powders. Conventional pharmaceutical carriers, aqueous, powder or oily bases, thickeners and the like may be necessary or desirable.

This invention also includes pharmaceutical compositions which contain, as the active ingredient, the compound of the invention or a pharmaceutically acceptable salt thereof, in combination with one or more pharmaceutically acceptable carriers (excipients). In some embodiments, the composition is suitable for topical administration. In making the compositions of the invention, the active ingredient is typically mixed with an excipient, diluted by an excipient or enclosed within such a carrier in the form of, for example, a capsule, sachet, paper, or other container. When the excipient serves as a diluent, it can be a solid, semi-solid, or liquid material, which acts as a vehicle, carrier or medium for the active ingredient. Thus, the compositions can be in the form of tablets, pills, powders, lozenges, sachets, cachets, elixirs, suspensions, emulsions, solutions, syrups, aerosols (as a solid or in a liquid medium), ointments containing, for example, up to 10% by weight of the active compound, soft and hard gelatin capsules, suppositories, sterile injectable solutions, and sterile packaged powders.

In preparing a formulation, the active compound can be milled to provide the appropriate particle size prior to combining with the other ingredients. If the active compound is substantially insoluble, it can be milled to a particle size of less than 200 mesh. If the active compound is substantially water soluble, the particle size can be adjusted by milling to provide a substantially uniform distribution in the formulation, e.g., about 40 mesh.

The compounds of the invention may be milled using known milling procedures such as wet milling to obtain a particle size appropriate for tablet formation and for other formulation types. Finely divided (nanoparticulate) preparations of the compounds of the invention can be prepared by processes known in the art, e.g., see International App. No. WO 2002/000196.

Some examples of suitable excipients include lactose, dextrose, sucrose, sorbitol, mannitol, starches, gum acacia, calcium phosphate, alginates, tragacanth, gelatin, calcium silicate, microcrystalline cellulose, polyvinylpyrrolidone, cellulose, water, syrup, and methyl cellulose. The formulations can additionally include: lubricating agents such as talc, magnesium stearate, and mineral oil; wetting agents; emulsifying and suspending agents; preserving agents such as methyl- and propylhydroxy-benzoates; sweetening agents; and flavoring agents. The compositions of the invention can be formulated so as to provide quick, sustained or delayed release of the active ingredient after administration to the patient by employing procedures known in the art.

The compositions can be formulated in a unit dosage form, each dosage containing from about 5 to about 1,000 mg (1 g), more usually about 100 mg to about 500 mg, of the active ingredient. The term “unit dosage forms” refers to physically discrete units suitable as unitary dosages for human subjects and other mammals, each unit containing a predetermined quantity of active material calculated to produce the desired therapeutic effect, in association with a suitable pharmaceutical excipient.

The active compound may be effective over a wide dosage range and is generally administered in a pharmaceutically effective amount. It will be understood, however, that the amount of the compound actually administered will usually be determined by a physician, according to the relevant circumstances, including the condition to be treated, the chosen route of administration, the actual compound administered, the age, weight, and response of the individual patient, the severity of the patient's symptoms, and the like.

For preparing solid compositions such as tablets, the principal active ingredient is mixed with a pharmaceutical excipient to form a solid preformulation composition containing a homogeneous mixture of a compound of the present invention. When referring to these preformulation compositions as homogeneous, the active ingredient is typically dispersed evenly throughout the composition so that the composition can be readily subdivided into equally effective unit dosage forms such as tablets, pills and capsules. This solid preformulation is then subdivided into unit dosage forms of the type described above containing from, for example, about 0.1 to about 1000 mg of the active ingredient of the present invention.

The tablets or pills of the present invention can be coated or otherwise compounded to provide a dosage form affording the advantage of prolonged action. For example, the tablet or pill can comprise an inner dosage and an outer dosage component, the latter being in the form of an envelope over the former. The two components can be separated by an enteric layer which serves to resist disintegration in the stomach and permit the inner component to pass intact into the duodenum or to be delayed in release. A variety of materials can be used for such enteric layers or coatings, such materials including a number of polymeric acids and mixtures of polymeric acids with such materials as shellac, cetyl alcohol, and cellulose acetate.

The liquid forms in which the compounds and compositions of the present invention can be incorporated for administration orally or by injection include aqueous solutions, suitably flavored syrups, aqueous or oil suspensions, and flavored emulsions with edible oils such as cottonseed oil, sesame oil, coconut oil, or peanut oil, as well as elixirs and similar pharmaceutical vehicles.

Compositions for inhalation or insufflation include solutions and suspensions in pharmaceutically acceptable, aqueous or organic solvents, or mixtures thereof, and powders. The liquid or solid compositions may contain suitable pharmaceutically acceptable excipients as described supra. In some embodiments, the compositions are administered by the oral or nasal respiratory route for local or systemic effect. Compositions can be nebulized by use of inert gases. Nebulized solutions may be breathed directly from the nebulizing device or the nebulizing device can be attached to a face masks tent, or intermittent positive pressure breathing machine. Solution, suspension, or powder compositions can be administered orally or nasally from devices which deliver the formulation in an appropriate manner.

Topical formulations can contain one or more conventional carriers. In some embodiments, ointments can contain water and one or more hydrophobic carriers selected from, for example, liquid paraffin, polyoxyethylene alkyl ether, propylene glycol, white vaseline, and the like. Carrier compositions of creams can be based on water in combination with glycerol and one or more other components, e.g., glycerinemonostearate, PEG-glycerinemonostearate and cetylstearyl alcohol. Gels can be formulated using isopropyl alcohol and water, suitably in combination with other components such as, for example, glycerol, hydroxyethyl cellulose, and the like. In some embodiments, topical formulations contain at least about 0.1, at least about 0.25, at least about 0.5, at least about 1, at least about 2, or at least about 5 wt % of the compound of the invention. The topical formulations can be suitably packaged in tubes of, for example, 100 g which are optionally associated with instructions for the treatment of the select indication, e.g., psoriasis or other skin condition.

The amount of compound or composition administered to a patient will vary depending upon what is being administered, the purpose of the administration, such as prophylaxis or therapy, the state of the patient, the manner of administration, and the like. In therapeutic applications, compositions can be administered to a patient already suffering from a disease in an amount sufficient to cure or at least partially arrest the symptoms of the disease and its complications. Effective doses will depend on the disease condition being treated as well as by the judgment of the attending clinician depending upon factors such as the severity of the disease, the age, weight and general condition of the patient, and the like.

The compositions administered to a patient can be in the form of pharmaceutical compositions described above. These compositions can be sterilized by conventional sterilization techniques, or may be sterile filtered. Aqueous solutions can be packaged for use as is, or lyophilized, the lyophilized preparation being combined with a sterile aqueous carrier prior to administration. The pH of the compound preparations typically will be between 3 and 11, more preferably from 5 to 9 and most preferably from 7 to 8. It will be understood that use of certain of the foregoing excipients, carriers, or stabilizers will result in the formation of pharmaceutical salts.

The therapeutic dosage of a compound of the present invention can vary according to, for example, the particular use for which the treatment is made, the manner of administration of the compound, the health and condition of the patient, and the judgment of the prescribing physician. The proportion or concentration of a compound of the invention in a pharmaceutical composition can vary depending upon a number of factors including dosage, chemical characteristics (e.g., hydrophobicity), and the route of administration. For example, the compounds of the invention can be provided in an aqueous physiological buffer solution containing about 0.1 to about 10% w/v of the compound for parenteral administration. Some typical dose ranges are from about 1 g/kg to about 1 g/kg of body weight per day. In some embodiments, the dose range is from about 0.01 mg/kg to about 100 mg/kg of body weight per day. The dosage is likely to depend on such variables as the type and extent of progression of the disease or disorder, the overall health status of the particular patient, the relative biological efficacy of the compound selected, formulation of the excipient, and its route of administration. Effective doses can be extrapolated from dose-response curves derived from in vitro or animal model test systems.

The compositions of the invention can further include one or more additional pharmaceutical agents such as a chemotherapeutic, steroid, anti-inflammatory compound, or immunosuppressant, examples of which are listed hereinabove.

Labeled Compounds and Assay Methods

Another aspect of the present invention relates to labeled compounds of the invention (radio-labeled, fluorescent-labeled, etc.) that would be useful not only in imaging techniques but also in assays, both in vitro and in vivo, for localizing and quantitating LSD1 in tissue samples, including human, and for identifying LSD1 ligands by inhibition binding of a labeled compound. Accordingly, the present invention includes LSD1 assays that contain such labeled compounds.

The present invention further includes isotopically-labeled compounds of the invention. An “isotopically” or “radio-labeled” compound is a compound of the invention where one or more atoms are replaced or substituted by an atom having an atomic mass or mass number different from the atomic mass or mass number typically found in nature (i.e., naturally occurring). Suitable radionuclides that may be incorporated in compounds of the present invention include but are not limited to ³H (also written as T for tritium), ¹¹C, ¹³C, ¹⁴C, ¹³N, ¹⁵N, ¹⁵O, ¹⁷O, ¹⁸O, ¹⁸F, ³⁵S, ³⁶Cl, ⁸²Br, ⁷⁵Br, ⁷⁶Br, ⁷⁷Br, ¹²³I, ¹²⁴I, ¹²⁵I and ¹³¹I. The radionuclide that is incorporated in the instant radio-labeled compounds will depend on the specific application of that radio-labeled compound.

It is to be understood that a “radio-labeled” or “labeled compound” is a compound that has incorporated at least one radionuclide. In some embodiments the radionuclide is selected from the group consisting of ³H, ¹⁴C, ¹²⁵I, ³⁵S and ⁸²Br. In some embodiments, the compound incorporates 1, 2, or 3 deuterium atoms.

The present invention can further include synthetic methods for incorporating radio-isotopes into compounds of the invention. Synthetic methods for incorporating radio-isotopes into organic compounds are well known in the art, and an ordinary skill in the art will readily recognize the methods applicable for the compounds of invention.

A labeled compound of the invention can be used in a screening assay to identify/evaluate compounds. For example, a newly synthesized or identified compound (i.e., test compound) which is labeled can be evaluated for its ability to bind LSD1 by monitoring its concentration variation when contacting with LSD1, through tracking of the labeling. For example, a test compound (labeled) can be evaluated for its ability to reduce binding of another compound which is known to bind to LSD1 (i.e., standard compound). Accordingly, the ability of a test compound to compete with the standard compound for binding to LSD1 directly correlates to its binding affinity. Conversely, in some other screening assays, the standard compound is labeled and test compounds are unlabeled. Accordingly, the concentration of the labeled standard compound is monitored in order to evaluate the competition between the standard compound and the test compound, and the relative binding affinity of the test compound is thus ascertained.

The invention will be described in greater detail by way of specific examples. The following examples are offered for illustrative purposes, and are not intended to limit the invention in any manner. Those of skill in the art will readily recognize a variety of non-critical parameters which can be changed or modified to yield essentially the same results. The compounds of the Examples were found to be inhibitors of LSD1 as described below.

Examples

Experimental procedures for compounds of the invention are provided below. Preparatory LC-MS purifications of some of the compounds prepared were performed on Waters mass directed fractionation systems. The basic equipment setup, protocols, and control software for the operation of these systems have been described in detail in the literature. See e.g. “Two-Pump At Column Dilution Configuration for Preparative LC-MS”, K. Blom, J. Combi. Chem., 4, 295 (2002); “Optimizing Preparative LC-MS Configurations and Methods for Parallel Synthesis Purification”, K. Blom, R. Sparks, J. Doughty, G. Everlof, T. Haque, A. Combs, J. Combi. Chem., 5, 670 (2003); and “Preparative LC-MS Purification: Improved Compound Specific Method Optimization”, K. Blom, B. Glass, R. Sparks, A. Combs, J. Combi. Chem., 6, 874-883 (2004). The compounds separated were typically subjected to analytical liquid chromatography mass spectrometry (LCMS) for purity check under the following conditions: Instrument; Agilent 1100 series, LC/MSD, Column: Waters Sunfire™ C₁₈ 5 μm particle size, 2.1×5.0 mm, Buffers: mobile phase A: 0.025% TFA in water and mobile phase B: acetonitrile; gradient 2% to 80% of B in 3 minutes with flow rate 2.0 mL/minute.

Some of the compounds prepared were also separated on a preparative scale by reverse-phase high performance liquid chromatography (RP-HPLC) with MS detector or flash chromatography (silica gel) as indicated in the Examples. Typical preparative reverse-phase high performance liquid chromatography (RP-HPLC) column conditions are as follows:

pH=2 purifications: Waters Sunfire™ C₁₈ 5 μm particle size, 19×100 mm column, eluting with mobile phase A: 0.1% TFA (trifluoroacetic acid) in water and mobile phase B: acetonitrile; the flow rate was 30 mL/minute, the separating gradient was optimized for each compound using the Compound Specific Method Optimization protocol as described in the literature [see “Preparative LCMS Purification: Improved Compound Specific Method Optimization”, K. Blom, B. Glass, R. Sparks, A. Combs, J. Comb. Chem., 6, 874-883 (2004)]. Typically, the flow rate used with the 30×100 mm column was 60 mL/minute.

pH=10 purifications: Waters XBridge C₁₈ 5 μm particle size, 19×100 mm column, eluting with mobile phase A: 0.15% NH₄OH in water and mobile phase B: acetonitrile; the flow rate was 30 mL/minute, the separating gradient was optimized for each compound using the Compound Specific Method Optimization protocol as described in the literature [See “Preparative LCMS Purification: Improved Compound Specific Method Optimization”, K. Blom, B. Glass, R. Sparks, A. Combs, J. Comb. Chem., 6, 874-883 (2004)]. Typically, the flow rate used with 30×100 mm column was 60 mL/minute.

Examples Example 1 4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

Step 1: 2,5-dichloro-6-(4-methylphenyl)pyridin-3-ol

A mixture of 2,5-dichloro-6-iodopyridin-3-ol (Aldrich, cat#ADE000183, 750 mg, 2.6 mmol), palladium acetate (58.1 mg, 0.259 mmol), tri-o-tolylphosphine (158 mg, 0.518 mmol), sodium carbonate (549 mg, 5.18 mmol), and (4-methylphenyl)boronic acid (616 mg, 4.53 mmol) in 1,2-dimethoxyethane (20 mL) and water (5.0 mL) was first purged with nitrogen and then stirred and heated at 80° C. for 2 h until completion of the reaction. The reaction mixture was passed through a pad of Celite, rinsed with EtOAc and the filtrate was concentrated. The residue was then purified via column chromatography (0% to 15% methanol in DCM) to give the product as a dark red solid (700 mg, quant.). LC/MS calculated for C₁₂H₁₀Cl₂NO (M+H)⁺: m/z=254.0. found 254.0.

Step 2: tert-butyl (3R)-3-({[2,5-dichloro-6-(4-methylphenyl)pyridin-3-yl]oxy}methyl)pyrrolidine-1-carboxylate

To a solution of 2,5-dichloro-6-(4-methylphenyl)pyridin-3-ol (700 mg, 3 mmol), tert-butyl (3R)-3-(hydroxymethyl)pyrrolidine-1-carboxylate (Ark Pharm, cat#AK-25400, 1.11 g, 5.51 mmol), and triphenylphosphine (1.44 g, 5.51 mmol) in tetrahydrofuran (25 mL) at room temperature was added diethyl azodicarboxylate (40 wt. % in toluene, 2.50 mL, 6.35 mmol) dropwise. The reaction mixture was stirred at room temperature for 2 h then concentrated. The residue was purified via column chromatography (15% to 50% EtOAc in hexanes) to give the product as a white foamy solid (891 mg, 70%). LC/MS calculated for C₁₈H₁₉Cl₂N₂O₃ [M-(t-butyl)+2H]⁺: m/z=381.1. found 381.1.

Step 3: tert-butyl (3R)-3-({[5-chloro-2-hydrazino-6-(4-methylphenyl)pyridin-3-yl]oxy}methyl) pyrrolidine-1-carboxylate

To a mixture of (3R)-3-({[2,5-dichloro-6-(4-methylphenyl)pyridin-3-yl]oxy}methyl) pyrrolidine-1-carboxylate (250 mg, 0.56 mmol) in isopropyl alcohol (1.8 mL) was added hydrazine hydrate (1.8 mL, 37 mmol). The resulting mixture was heated at 130° C. for 3 h under microwave conditions. The resulting mixture was then cooled to room temperature, diluted with methanol, and concentrated to give the crude product as a white solid, which was used directly in the next step. LC-MS calculated for C₂₂H₃₀ClN₄O₃ [M+H]⁺: m/z=433.2. found 433.2.

Step 4: tert-butyl (3R)-3-({[6-chloro-5-(4-methylphenyl)[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate

The crude product from Step 3 was first dissolved in ethyl orthoformate (5.0 mL), and then heated at 95° C. for 1 h. The mixture was cooled to room temperature then concentrated. The residue was purified via column chromatography (15% to 75% EtOAc in hexanes) to give the product as an orange solid (229 mg, 91% two steps). LC/MS calculated for C₂₃H₂₈ClN₄O₃ [M+H]⁺: m/z=443.2. found 443.2.

Step 5: tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate

A mixture of tert-butyl (3R)-3-({[6-chloro-5-(4-methylphenyl)[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (48.6 mg, 0.11 mmol), (4-cyanophenyl) boronic acid (40.3 mg, 0.27 mmol), tetrakis(triphenylphosphine)palladium(0) (25.4 mg, 0.022 mmol) and Na₂CO₃ solution (1.0 M in water, 0.40 mL) in 1,4-dioxane (1.0 mL) was first purged with nitrogen, then stirred and heated at 110° C. for 3 h. The reaction mixture was then cooled to room temperature, passed through a pad of Celite and concentrated. The resulting residue was purified by column chromatography (0% to 75% EtOAc in hexanes) to give the product as a slightly yellow solid, which was used directly in the next step. LC-MS calculated for C₃₀H₃₂N₅O₃ [M+H]⁺: m/z=510.2. found 510.2.

Step 6: 4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

To a solution of tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (83.4 mg, 0.16 mmol) in methylene chloride (2.0 mL) at 0° C. was added trifluoroacetic acid (0.4 mL, 5 mmol). The reaction mixture was stirred at 0° C. for 1.5 h, and then concentrated. The residue was purified via preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a white solid (TFA salt). LC/MS calculated for C₂₅H₂₄N₅O [M+H]⁺: m/z=410.2. found 410.2.

Example 2 2-fluoro-4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A mixture of (4-cyano-3-fluorophenyl)boronic acid (22.3 mg, 0.14 mmol), tert-butyl (3R)-3-({[6-chloro-5-(4-methylphenyl)[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (Example 1, Step 4, 30.0 mg, 0.0677 mmol), sodium carbonate (14.4 mg, 0.135 mmol), and [1,1′-bis(di-cyclohexylphosphino)ferrocene]-dichloropalladium(II) (5.1 mg, 0.0068 mmol) in tert-butyl alcohol (0.70 mL) and water (0.70 mL) was first purged with nitrogen, and then stirred and heated at 100° C. for 1.5 h. The resulting mixture was cooled to room temperature, quenched with water, and extracted with EtOAc. The combined extracts were dried over Na₂SO₄, and concentrated. The residue was dissolved in methylene chloride (1.5 mL) at 0° C., and trifluoroacetic acid (0.3 mL, 4 mmol) was added. The reaction mixture was stirred at 0° C. for 1 h, and then concentrated. The residue was purified via preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a white solid (TFA salt). LC/MS calculated for C₂₅H₂₃FN₅O [M+H]⁺: m/z=428.2. found 428.2.

Example 3 4-{5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

Step 1: tert-butyl (3R)-3-({[6-chloro-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate

To a solution of tert-butyl (3R)-3-({[2,5-dichloro-6-(4-methylphenyl)pyridin-3-yl]oxy}methyl)pyrrolidine-1-carboxylate (Example 1, Step 2: 646.2 mg, 1.48 mmol) in isopropyl alcohol (4.0 mL) was added hydrazine hydrate (4.0 mL, 82 mmol). The resulting mixture was heated at 130° C. for 2 h under microwave conditions. The resulting mixture was cooled to room temperature, and then concentrated to give a white solid. This solid was then dissolved in tetrahydrofuran (10.0 mL) and N,N-carbonyldiimidazole (359 mg, 2.22 mmol) was added.

The reaction mixture was stirred at room temperature overnight and concentrated. The residue was purified via column chromatography (0% to 15% methanol in DCM) to give the product as a white solid (470 mg, 69%). LC/MS calculated for C₂₃H₂₈ClN₄O₄ [M+H]⁺: m/z=459.2. found 459.2.

Step 2: tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate

A mixture of (4-cyanophenyl)boronic acid (27.2 mg, 0.19 mmol), tert-butyl (3R)-3-({[6-chloro-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (42.5 mg, 0.093 mmol), sodium carbonate (19.6 mg, 0.19 mmol), and [1,1′-bis(di-cyclohexylphosphino)ferrocene]-dichloropalladium(II) (7.0 mg, 0.0092 mmol) in tert-butyl alcohol (1.2 mL) and water (1.2 mL) was purged with nitrogen, then stirred and heated at 95° C. for 1.5 h. The resulting mixture was cooled to room temperature, and diluted with water then extracted with EtOAc. The combined extracts were dried over Na₂SO₄, and concentrated. The residue was purified via column chromatography (0% to 15% methanol in DCM) to give the product as a yellow oil. LC/MS calculated for C₃₀H₃₂N₅O₄ [M+H]⁺: m/z=526.2. found 526.2.

Step 3: 4-{5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

To a solution of tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (66.7 mg, 0.13 mmol) in methylene chloride (2.0 mL) at 0° C. was added trifluoroacetic acid (0.4 mL, 5 mmol). The reaction mixture was stirred at 0° C. for 1 h and concentrated. The residue was purified via preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a white solid (TFA salt). LC/MS calculated for C₂₅H₂₄N₅O₂ [M+H]⁺: m/z=426.2. found 426.1.

Example 4 4-{2-methyl-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

To a solution of tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (Example 3, Step 2: 45 mg, 0.086 mmol) and potassium carbonate (95 mg, 0.69 mmol) in N,N-dimethylformamide (1.5 mL) at room temperature was added methyl iodide (32 μL, 0.52 mmol). The reaction mixture was stirred at room temperature for 3 h and then filtered and washed with DCM. The filtrate was concentrated and the residue was purified via column chromatography (0% to 75% EtOAc in hexanes) to give a colorless oil. This intermediate was then dissolved in methylene chloride (1.5 mL) at 0° C., and trifluoroacetic acid (0.3 mL, 4 mmol) was added. The mixture was stirred at 0° C. for 1 h and concentrated. The residue was purified via preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a white solid (TFA salt). LC/MS calculated for C₂₆H₂₆N₅O₂ [M+H]⁺: m/z=440.2. found 440.2.

Example 5 (R)-4-(2-(cyanomethyl)-3-oxo-8-(pyrrolidin-3-ylmethoxy)-5-p-tolyl-2,3-dihydro-[1,2,4]triazolo[4,3-a]pyridin-6-yl)benzonitrile

A procedure analogous to that of Example 4 was followed with bromoacetonitrile replacing methyl iodide to afford the product as a yellow solid (TFA salt). LC-MS calculated for C₂₇H₂₅N₆O₂ [M+H]⁺: m/z=465.2. found 465.2.

Example 6 4-{2-(2-cyanoethyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with 3-bromo-propanenitrile replacing methyl iodide to afford the product as a yellow solid (TFA salt). LC-MS calculated for C₂₈H₂₇N₆O₂ [M+H]⁺: m/z=479.2. found 479.3.

Example 7 4-{2-(cyclopentylmethyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with (bromomethyl)cyclopentane replacing methyl iodide to afford the product as a white solid (TFA salt). LC/MS calculated for C₃₁H₃₄N₅O₂ [M+H]⁺: m/z=508.3. found 508.3.

Example 8 4-[5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2-(tetrahydrofuran-2-ylmethyl)-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl]benzonitrile

A procedure analogous to that of Example 4 was followed with tetrahydrofurfuryl bromide replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₃₀H₃₂N₅O₃ [M+H]⁺: m/z=510.2. found 510.2.

Example 9 4-{5-(4-methylphenyl)-2-[(1-methyl-1H-pyrazol-3-yl)methyl]-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with 3-(chloromethyl)-1-methyl-1H-pyrazole replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₃₀H₃₀N₇O₂ [M+H]⁺: m/z=520.2. found 520.3.

Example 10 4-{5-(4-methylphenyl)-2-(2-morpholin-4-ylethyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with 4-(2-bromoethyl)morpholine hydrochloride replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₃₁H₃₅N₆O₃ [M+H]⁺: m/z=539.3. found 539.4.

Example 11 2-[6-(4-cyanophenyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-2(3H)-yl]acetamide

A procedure analogous to that of Example 4 was followed with 2-bromoacetamide replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₂₇H₂₇N₆O₃ [M+H]⁺: m/z=483.2. found 483.1.

Example 12 4-[5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2-(3,3,3-trifluoro-2-hydroxypropyl)-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl]benzonitrile

A procedure analogous to that of Example 4 was followed with 3-bromo-1,1,1-trifluoropropan-2-ol replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₂₈H₂₇F₃N₅O₃ [M+H]⁺: m/z=538.2. found 538.3.

Example 13 4-{5-(4-methylphenyl)-3-oxo-2-(piperidin-4-ylmethyl)-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with tert-butyl-4-(bromomethyl)piperidine-1-carboxylate replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₃₁H₃₅N₆O₂ [M+H]⁺: m/z=523.3. found 523.2.

Example 14 4-{5-(4-methylphenyl)-3-oxo-2-(2-phenoxyethyl)-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with (2-bromoethoxy)-benzene replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₃₃H₃₂N₅O₃ [M+H]⁺: m/z=546.2. found 546.1.

Example 15 4-{2-[2-(dimethylamino)ethyl]-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 4 was followed with 2-bromo-N,N-dimethylethanamine hydrobromide replacing methyl iodide to afford the product as a white solid (TFA salt). LC-MS calculated for C₂₉H₃₃N₆O₂ [M+H]⁺: m/z=497.3. found 497.2.

Example 16 4-{2-benzyl-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

Step 1: tert-butyl (3R)-3-({[2-benzyl-6-chloro-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate

To a solution of tert-butyl (3R)-3-({[6-chloro-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (Example 3, Step 1, 35.0 mg, 0.076 mmol) and potassium carbonate (84 mg, 0.61 mmol) in N,N-dimethylformamide (1.5 mL) was added benzyl bromide (45 μL, 0.38 mmol). The reaction mixture was stirred at room temperature for 3 h and then filtered, washed with EtOAc. The filtrate was concentrated and the residue was purified via column chromatography (25% to 55% EtOAc in hexanes) to give the product as a slightly yellow oil (29.7 mg, 71%). LC/MS calculated for C₃₀H₃₄ClN₄O₄ [M+H]⁺: m/z=549.2. found 549.2.

Step 2: 4-{2-benzyl-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A mixture of (4-cyanophenyl)boronic acid (15.9 mg, 0.108 mmol), tert-butyl (3R)-3-({[2-benzyl-6-chloro-5-(4-methylphenyl)-3-oxo-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-8-yl]oxy}methyl)pyrrolidine-1-carboxylate (29.7 mg, 0.0541 mmol), sodium carbonate (11.5 mg, 0.108 mmol), and [1,1′-bis-(di-tert-butylphosphino)ferrocene]dichloropalladium (II) (5.3 mg, 0.0081 mmol) in 1,4-dioxane (1.0 mL) and water (0.1 mL) was purged with nitrogen, then stirred and heated at 110° C. for 3 h. The resulting mixture was cooled to room temperature, diluted with EtOAc, filtered then dried over Na₂SO₄ and concentrated. The residue was dissolved in methylene chloride (1.5 mL) at 0° C. and trifluoroacetic acid (0.3 mL, 4 mmol) was added. The reaction mixture was stirred at 0° C. for 1 h, and concentrated. The residue was purified preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a white solid (TFA salt). LC/MS calculated for C₃₂H₃₀N₅O₂ [M+H]⁺: m/z=516.2. found 516.3.

Example 17 4-{2-(4-cyanobenzyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 16 was followed with p-cyanobenzyl bromide replacing benzyl bromide in Step 1 to afford the product as a yellow solid (TFA salt). LC-MS calculated for C₃₃H₂₉N₆O₂ [M+H]⁺: m/z=541.2. found 541.2.

Example 18 4-{2-(2-hydroxyethyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile

A procedure analogous to that of Example 16 was followed with 2-bromoethanol replacing benzyl bromide in Step 1 to afford the product as a white solid (TFA salt). LC/MS calculated for C₂₇H₂₈N₅O₃ [M+H]⁺: m/z=470.2. found 470.2.

Example 19 4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyrazin-6-yl}benzonitrile

Step 1: 5-bromo-6-chloropyrazin-2-ol

To a solution of 5-bromo-6-chloropyrazin-2-amine (Accela ChemBio, cat#SY008157 350 mg, 1.7 mmol) in concentrated sulfuric acid (3.0 mL) at 0° C. was added sodium nitrite (120 mg, 1.7 mmol) portionwise. The reaction mixture was stirred at 0° C. for 1 h then poured into ice. The resulting solid was collected by filtration, and washed with water and hexanes then dried to give the product as a pale yellow solid (263 mg, 75%). LC/MS calculated for C₄H₃BrClN₂O [M+H]⁺: m/z=208.9. found 208.9.

Step 2. 6-chloro-5-(4-methylphenyl)pyrazin-2-ol

A mixture of 5-bromo-6-chloropyrazin-2-ol (263 mg, 1.26 mmol), palladium acetate (28.2 mg, 0.13 mmol), tri-o-tolylphosphine (76.6 mg, 0.25 mmol), sodium carbonate (333 mg, 3.14 mmol), and (4-methylphenyl)boronic acid (188 mg, 1.38 mmol) in 1,2-dimethoxyethane (10 mL) and water (2 mL) was first purged with nitrogen and then stirred and heated at 85° C. for 2 h. The reaction mixture was cooled to room temperature, passed through a pad of Celite, rinsed with EtOAc and the filtrate was concentrated. The residue was purified via column chromatography (0% to 15% methanol in DCM) to give the product as a yellow solid (181 mg, 65%). LC/MS calculated for C₁₁H₁₀ClN₂O [M+H]⁺: m/z=221.0. found 221.1.

Step 3: 4-[6-hydroxy-3-(4-methylphenyl)pyrazin-2-yl]benzonitrile

A mixture of (4-cyanophenyl)boronic acid (240 mg, 1.64 mmol), 6-chloro-5-(4-methylphenyl)pyrazin-2-ol (180.5 mg, 0.82 mmol), sodium carbonate (173 mg, 1.63 mmol), and [1,1′-bis(di-cyclohexylphosphino)ferrocene]-dichloropalladium(II) (50 mg, 0.06 mmol) in tert-butyl alcohol (3.0 mL) and water (3.0 mL) was first purged with nitrogen, then stirred and heated at 100° C. for 1.5 h. The resulting mixture was cooled to room temperature, diluted with water, and extracted with EtOAc. The combined extracts were dried over Na₂SO₄, and concentrated. The residue was purified via column chromatography (0% to 15% methanol in DCM) to give the product as a yellow solid (230 mg, 98%). LC/MS calculated for C₁₈H₁₄N₃O [M+H]⁺: m/z=288.1. found 288.1.

Step 4: tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)pyrazin-2-yl]oxy}methyl) pyrrolidine-1-carboxylate

To a solution of 4-[6-hydroxy-3-(4-methylphenyl)pyrazin-2-yl]benzonitrile (230 mg, 0.80 mmol), tert-butyl (3R)-3-(hydroxymethyl)pyrrolidine-1-carboxylate (323 mg, 1.60 mmol), and triphenylphosphine (421 mg, 1.60 mmol) in tetrahydrofuran (6.0 mL) was added diethyl azodicarboxylate (40 wt. % in toluene, 0.729 mL, 1.85 mmol) dropwise. The reaction mixture was stirred at room temperature for 2 h and concentrated. The residue was purified via column chromatography (0% to 75% EtOAc in Hexanes) to give the product as a yellow oil (216 mg, 57%). LC/MS calculated for C₂₄H₂₃N₄O₃ [M−^(t)Bu+2H]⁺: m/z=415.2. found 415.2.

Step 5: tert-butyl (3R)-3-({[3-chloro-6-(4-cyanophenyl)-5-(4-methylphenyl)pyrazin-2-yl]oxy}methyl)pyrrolidine-1-carboxylate

To a solution of tert-butyl (3R)-3-({[6-(4-cyanophenyl)-5-(4-methylphenyl)pyrazin-2-yl]oxy}methyl)pyrrolidine-1-carboxylate (24.5 mg, 0.052 mmol) in methylene chloride (1.5 mL) at room temperature was added m-chloroperbenzoic acid (35.9 mg, 0.21 mmol). The resulting mixture was stirred at 35° C. overnight then cooled to room temperature and concentrated. The residue was purified via column chromatography (0 to 15% methanol in DCM) to give the desired intermediate. This intermediate was then dissolved in toluene (0.6 mL) and N,N-dimethylformamide (0.6 mL) at 0° C., and phosphoryl chloride (24.3 μL, 0.26 mmol) was added. The reaction mixture was stirred and gradually warmed to room temperature over 2 h. The resulting mixture was quenched with saturated NaHCO₃ (aq) solution, and extracted with EtOAc. The combined extracts were dried over Na₂SO₄, and concentrated. The residue was purified via column chromatography (15% to 55% EtOAc in hexanes) to give the product as a slightly yellow solid, which was used directly in the next step. LC/MS calculated for C₂₄H₂₂ClN₄O₃ [M−^(t)Bu+2H]⁺: m/z=449.1. found 449.1.

Step 6: tert-butyl (3R)-3-({[6-(4-cyanophenyl)-3-hydrazino-5-(4-methylphenyl)pyrazin-2-yl]oxy}methyl)pyrrolidine-1-carboxylate

The product from Step 5 was dissolved in hydrazine hydrate (0.75 mL) and isopropyl alcohol (0.75 mL). The resulting mixture was then heated at 130° C. under microwave conditions for 1 h. The reaction mixture was cooled to room temperature, diluted with methanol, and concentrated to give the crude product, which was used directly in the next step. LC/MS calculated for C₂₈H₃₃N₆O₃ [M+H]⁺: m/z=501.3. found 501.2.

Step 7: 4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyrazin-6-yl}benzonitrile

The product from Step 6 was dissolved in ethyl orthoformate (1.5 mL) and heated to 105° C. for 1 h until. The reaction mixture was cooled to room temperature and concentrated. The residue was dissolved in methylene chloride (1.5 mL) at 0° C. and trifluoroacetic acid (0.3 mL, 4 mmol) was added. The resulting mixture was stirred at 0° C. for 1 h and concentrated. The residue was purified via preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a white solid (TFA salt). LC/MS calculated for C₂₄H₂₃N₆O [M+H]⁺: m/z=411.2. found 411.2.

Example 20 4-{5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyrazin-6-yl}benzonitrile

To a solution of tert-butyl (3R)-3-({[3-chloro-6-(4-cyanophenyl)-5-(4-methylphenyl)-pyrazin-2-yl]oxy}methyl)pyrrolidine-1-carboxylate (Example 19, Step 5: 44.5 mg, 0.088 mmol) in isopropyl alcohol (1.0 mL) was added hydrazine hydrate (1.00 mL, 20.6 mmol). The resulting mixture was heated at 110° C. for 30 min under microwave conditions. The resulting mixture was cooled to room temperature, diluted with methanol, and concentrated. The residue was dissolved in tetrahydrofuran (1.5 mL) and N,N-carbonyldiimidazole (42.9 mg, 0.26 mmol) was added. The resulting mixture was stirred at room temperature overnight, then at 45° C. for 3 h until completion of the reaction. The resulting mixture was concentrated, and dissolved in methylene chloride (1.5 mL) at 0° C., and trifluoroacetic acid (0.30 mL, 3.9 mmol) was added. The reaction mixture was stirred at 0° C. for 1 h and concentrated. The residue was purified via preparative HPLC (pH=2, MeCN/water with TFA) to give the product as a slightly yellow solid (TFA salt). LC/MS calculated for C₂₄H₂₃N₆O₂ [M+H]⁺: m/z=427.2. found 427.1.

Example A LSD1 Histone Demethylase Biochemical Assay

LANCE LSD1/KDM1A demethylase assay—10 μL of 1 nM LSD-1 enzyme (ENZO BML-SE544-0050) in the assay buffer (50 mM Tris, pH 7.5, 0.01% Tween-20, 25 mM NaCl, 5 mM DTT) were preincubated for 1 hour at 25° C. with 0.8 μL compound/DMSO dotted in black 384 well polystyrene plates. Reactions were started by addition of 10 μL of assay buffer containing 0.4 μM Biotin-labeled Histone H3 peptide substrate: ART-K(Mel)-QTARKSTGGKAPRKQLA-GGK(Biotin) SEQ ID NO:1 (AnaSpec 64355) and incubated for 1 hour at 25° C. Reactions were stopped by addition of 10 μL 1× LANCE Detection Buffer (PerkinElmer CR97-100) supplemented with 1.5 nM Eu-anti-unmodified H3K4 Antibody (PerkinElmer TRF0404), and 225 nM LANCE Ultra Streptavidin (PerkinElmer TRF102) along with 0.9 mM Tranylcypromine-HCl (Millipore 616431). After stopping the reactions plates were incubated for 30 minutes and read on a PHERAstar FS plate reader (BMG Labtech). IC₅₀ data for the example compounds is provided in Table 1 (+ refers to IC₅₀≦50 nM; ++ refers to IC₅₀>50 nM and ≦100 nM; +++ refers to IC₅₀>100 nM and ≦500 nM; ++++ refers to IC₅₀>500 nM and ≦1000 nM).

TABLE 1 Example No. IC₅₀ (nM) 1 + 2 + 3 + 4 +++ 5 + 6 + 7 + 8 ++ 9 ++ 10 ++ 11 ++ 12 ++ 13 + 14 + 15 + 16 + 17 + 18 ++ 19 ++ 20 ++

Various modifications of the invention, in addition to those described herein, will be apparent to those skilled in the art from the foregoing description. Such modifications are also intended to fall within the scope of the appended claims. Each reference, including all patent, patent applications, and publications, cited in the present application is incorporated herein by reference in its entirety. 

What is claimed is:
 1. A compound of Formula I:

or a pharmaceutically acceptable salt thereof, wherein: X is N or CR^(X); Y is (a) C═O and Z is NR^(Z) or (b) Y is CR³ and Z is N; wherein the bond between Y and Z represented by

is a single bond in the case of (a) and a double bond in the case of (b); Ring A is C₆₋₁₀ aryl or 5-10 membered heteroaryl comprising carbon and 1, 2, 3, or 4 heteroatoms selected from N, O, and S, wherein said C₆₋₁₀ aryl and 5-10 membered heteroaryl are each optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(A); Ring B is C₆₋₁₀ aryl; 5-10 membered heteroaryl comprising carbon and 1, 2, 3 or 4 heteroatoms selected from N, O, and S; C₃₋₁₀ cycloalkyl; or 4-10 membered heterocycloalkyl comprising carbon and 1, 2, 3 or 4 heteroatoms selected from N, O, and S; wherein said C₆₋₁₀ aryl, 5-10 membered heteroaryl, C₃₋₁₀ cycloalkyl, and 4-10 membered heterocycloalkyl are each optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(B); R¹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, Cy¹, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), or S(O)₂NR^(c1)R^(d1), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy¹, halo, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), and S(O)₂NR^(c1)R^(d1); R³ is H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, Cy², CN, OR^(a2), SR^(a2), C(O)R^(b2), C(O)NR^(c2)R^(d2), C(O)OR^(a2), NR^(c2)R^(d2), NR^(c2)C(O)R^(b2), NR^(c2)C(O)OR^(a2), NR^(c2)C(O)NR^(c2)R^(d2), C(═NR^(e2))R^(b2), C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)S(O)R^(b2), NR^(c2)S(O)₂R^(b2), NR^(c2)S(O)₂NR^(c2)R^(d2), S(O)R^(b2), S(O)NR^(c2)R^(d2), S(O)₂R^(b2), or S(O)₂NR^(c2)R^(d2), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy², halo, CN, OR^(a2), SR^(a2), C(O)R^(b2), C(O)NR^(c2)R^(d2), C(O)OR^(a2), OC(O)R^(b2), OC(O)NR^(c2)R^(d2), NR^(c2)R^(d2), NR^(c2)C(O)R^(b2), NR^(c2)C(O)OR^(a2), NR^(c2)C(O)NR^(c2)R^(d2), C(═NR^(e2))R^(b2), C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)C(═NR^(e2))NR^(c2)R^(d2), NR^(c2)S(O)R^(b2), NR^(c2)S(O)₂R^(b2), NR^(c2)S(O)₂NR^(c2)R^(d2), S(O)R^(b2), S(O)NR^(c2)R^(d2), S(O)₂R^(b2), and S(O)₂NR^(c2)R^(d2); each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), SR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), OC(O)R^(b4), OC(O)NR^(c4)R^(d4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), NR^(c4)C(O)OR^(a4), NR^(c4)C(O)NR^(c4)R^(d4), C(═NR^(e4))R^(b4), C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)S(O)R^(b4), NR^(c4)S(O)₂R^(b4), NR^(c4)S(O)₂NR^(c4)R^(d4), S(O)R^(b4), S(O)NR^(c4)R^(d4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), SR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), OC(O)R^(b4), OC(O)NR^(c4)R^(d4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), NR^(c4)C(O)OR^(a4), NR^(c4)C(O)NR^(c4)R^(d4), C(═NR^(e4))R^(b4), C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)C(═NR^(e4))NR^(c4)R^(d4), NR^(c4)S(O)R^(b4), NR^(c4)S(O)₂R^(b4), NR^(c4)S(O)₂NR^(c4)R^(d4), S(O)R^(b4), S(O)NR^(c4)R^(d4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4); each R^(B) is independently selected from Cy³, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), SR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), OC(O)R^(b5), OC(O)NR^(c5)R^(d5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), NR^(c5)C(O)OR^(a5), NR^(c5)C(O)NR^(c5)R^(d5), C(═NR^(e5))R^(b5), C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)S(O)R^(b5), NR^(c5)S(O)₂R^(b5), NR^(c5)S(O)₂NR^(c5)R^(d5), S(O)R^(b5), S(O)NR^(c5)R^(d5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from Cy³, halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), SR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), OC(O)R^(b5), OC(O)NR^(c5)R^(d5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), NR^(c5)C(O)OR^(a5), NR^(c5)C(O)NR^(c5)R^(d5), C(═NR^(e5))R^(b5), C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)C(═NR^(e5))NR^(c5)R^(d5), NR^(c5)S(O)R^(b5), NR^(c5)S(O)₂R^(b5), NR^(c5)S(O)₂NR^(c5)R^(d5), S(O)R^(b5), S(O)NR^(c5)R^(d5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5); R^(X) is H, halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)OR^(a8), NR^(c8)C(O)NR^(c8)R^(d8), C(═NR^(e8))R^(b8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)S(O)R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), or S(O)₂NR^(c8)R^(d8); R^(Z) is H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, or Cy⁴, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), SR^(a3), C(O)R^(b3), C(O)NR^(c3)R^(d3), C(O)OR^(a3), OC(O)R^(b3), OC(O)NR^(c3)R^(d3), NR^(c3)R^(d3), NR^(c3)C(O)R^(b3), NR^(c3)C(O)OR^(a3), NR^(c3)C(O)NR^(c3)R^(d3), C(═NR^(e3))R^(b3), C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)S(O)R^(b3), NR^(c3)S(O)₂R^(b3), NR^(c3)S(O)₂NR^(c3)R^(d3), S(O)R^(b3), S(O)NR^(c3)R^(d3), S(O)₂R^(b3), and S(O)₂NR^(c3)R^(d3); each Cy¹, Cy², Cy³, Cy⁴, and Cy⁵ is independently selected from C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, and 4-10 membered heterocycloalkyl, each of which is optionally substituted with 1, 2, 3, or 4 substituents independently selected from R^(Cy); each R^(Cy) is selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6), wherein said C₁₋₄ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, and (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted by 1, 2, or 3 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6); each R^(a1) is independently selected from H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, and Cy⁵, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy¹, halo, CN, OR^(a7), SR^(a7), C(O)R^(b7), C(O)NR^(c7)R^(d7), C(O)OR^(a7), OC(O)R^(b7), OC(O)NR^(c7)R^(d7), NR^(c7)R^(d7), NR^(c7)C(O)R^(b7), NR^(c7)C(O)OR^(a7), NR^(c7)C(O)NR^(c7)R^(d7), C(═NR^(e7))R^(b7), C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)S(O)R^(b7), NR^(c7)S(O)₂R^(b7), NR^(c7)S(O)₂NR^(c7)R^(d7), S(O)R^(b7), S(O)NR^(c7)R^(d7), S(O)₂R^(b7), and S(O)₂NR^(c7)R^(d7); each R^(b1), R^(c1), and R^(d1) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c1) and R^(d1) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a2), R^(b2), R^(c2), and R^(d2) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c2) and R^(d2) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a3), R^(b3), R^(c3), and R^(d3) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c3) and R^(d3) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a4), R^(b4), R^(c4), and R^(d4) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c4) and R^(d4) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a2), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a5), R^(b5), R^(c5), and R^(d5) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c5) and R^(d5) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a6), R^(b6), R^(c6), and R^(d6) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c6) and R^(d6) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a7), R^(b7), R^(c7), and R^(d7) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c7) and R^(d7) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a8), R^(b8), R^(c8), and R^(d8) is independently selected from H, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein said C₁₋₄ alkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from OH, CN, amino, halo, C₁₋₄ alkyl, C₁₋₄ alkoxy, C₁₋₄ alkylthio, C₁₋₄ alkylamino, di(C₁₋₄ alkyl)amino, C₁₋₄ haloalkyl, and C₁₋₄ haloalkoxy; and each R^(e1), R^(e2), R^(e3), R^(e4), R^(e5), R^(e6), R^(e7), and R^(e8) is independently selected from H, C₁₋₄ alkyl, and CN; wherein when X is N; then Ring A is substituted by at least one R^(A) or Ring B is substituted by at least one R^(B).
 2. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein: X is N or CR^(X); Y is (a) C═O and Z is NR^(Z) or (b) Y is CR³ and Z is N; wherein the bond between Y and Z represented by

is a single bond in the case of (a) and a double bond in the case of (b); Ring A is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(A); Ring B is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(B); R¹ is halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, Cy¹, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), or S(O)₂NR^(c1)R^(d1), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy¹, halo, CN, OR^(a1), SR^(a1), C(O)R^(b1), C(O)NR^(c1)R^(d1), C(O)OR^(a1), OC(O)R^(b1), OC(O)NR^(c1)R^(d1), NR^(c1)R^(d1), NR^(c1)C(O)R^(b1), NR^(c1)C(O)OR^(a1), NR^(c1)C(O)NR^(c1)R^(d1), C(═NR^(e1))R^(b1), C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)C(═NR^(e1))NR^(c1)R^(d1), NR^(c1)S(O)R^(b1), NR^(c1)S(O)₂R^(b1), NR^(c1)S(O)₂NR^(c1)R^(d1), S(O)R^(b1), S(O)NR^(c1)R^(d1), S(O)₂R^(b1), and S(O)₂NR^(c1)R^(d1); R³ is H; each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4); each R^(B) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5); R^(X) is H; R^(Z) is H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, or Cy⁴, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), SR^(a3), C(O)R^(b3), C(O)NR^(c3)R^(d3), C(O)OR^(a3), OC(O)R^(b3), OC(O)NR^(c3)R^(d3), NR^(c3)R^(d3), NR^(c3)C(O)R^(b3), NR^(c3)C(O)OR^(a3), NR^(c3)C(O)NR^(c3)R^(d3), C(═NR^(e3))R^(b3), C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)C(═NR^(e3))NR^(c3)R^(d3), NR^(c3)S(O)R^(b3), NR^(c3)S(O)₂R^(b3), NR^(c3)S(O)₂NR^(c3)R^(d3), S(O)R^(b3), S(O)NR^(c3)R^(d3), S(O)₂R^(b3), and S(O)₂NR^(c3)R^(d3); each Cy¹, Cy⁴, and Cy⁵ is independently selected from C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, and 4-10 membered heterocycloalkyl, each of which is optionally substituted with 1, 2, 3, or 4 substituents independently selected from R^(Cy); each R^(Cy) is selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl-, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6), wherein said C₁₋₄ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, 4-7 membered heterocycloalkyl, phenyl-C₁₋₄ alkyl-, C₃₋₇ cycloalkyl-C₁₋₄ alkyl-, (5-6 membered heteroaryl)-C₁₋₄ alkyl-, and (4-7 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted by 1, 2, or 3 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, NO₂, OR^(a6), SR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), OC(O)R^(b6), OC(O)NR^(c6)R^(d6), C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)C(═NR^(e6))NR^(c6)R^(d6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), NR^(c6)C(O)OR^(a6), NR^(c6)C(O)NR^(c6)R^(d6), NR^(c6)S(O)R^(b6), NR^(c6)S(O)₂R^(b6), NR^(c6)S(O)₂NR^(c6)R^(d6), S(O)R^(b6), S(O)NR^(c6)R^(d6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6); each R^(a1) is independently selected from H, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, and Cy⁵, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from Cy⁵, halo, CN, OR^(a7), SR^(a7), C(O)R^(b7), C(O)NR^(c7)R^(d7), C(O)OR^(a7), OC(O)R^(b7), OC(O)NR^(c7)R^(d7), NR^(c7)R^(d7), NR^(c7)C(O)R^(b7), NR^(c7)C(O)OR^(a7), NR^(c7)C(O)NR^(c7)R^(d7), C(═NR^(e7))R^(b7), C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)C(═NR^(e7))NR^(c7)R^(d7), NR^(c7)S(O)R^(b7), NR^(c7)S(O)₂R^(b7), NR^(c7)S(O)₂NR^(c7)R^(d7), S(O)R^(b7), S(O)NR^(c7)R^(d7), S(O)₂R^(b7), and S(O)₂NR^(c7)R^(d7); each R^(b1), R^(c1), and R^(d1) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c1) and R^(d1) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a3), R^(b3), R^(c3), and R^(d3) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c3) and R^(d3) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a4), R^(b4), R^(c4), and R^(d4) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c4) and R^(d4) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a5), R^(b5), R^(c5), and R^(d5) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c5) and R^(d5) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c6)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a6), R^(b6), R^(c6), and R^(d6) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c6) and R^(d6) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a7), R^(b7), R^(c7), and R^(d7) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c7) and R^(d7) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a8), R^(b8), R^(c8), and R^(d8) is independently selected from H, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein said C₁₋₄ alkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from OH, CN, amino, halo, C₁₋₄ alkyl, C₁₋₄ alkoxy, C₁₋₄ alkylthio, C₁₋₄ alkylamino, di(C₁₋₄ alkyl)amino, C₁₋₄ haloalkyl, and C₁₋₄ haloalkoxy; and each R^(e1), R^(e3), R^(e6), R^(e7), and R^(e8) is independently selected from H, C₁₋₄ alkyl, and CN; wherein when X is N; then Ring A is substituted by at least one R^(A) or Ring B is substituted by at least one R^(B).
 3. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein: X is N or CR^(X); Y is (a) C═O and Z is NR^(Z) or (b) Y is CR³ and Z is N; wherein the bond between Y and Z represented by

is a single bond in the case of (a) and a double bond in the case of (b); Ring A is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(A); Ring B is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(B); R¹ is OR^(a1); R³ is H; each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4); each R^(B) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5); R^(X) is H; R^(Z) is H, C₁₋₆ alkyl, or C₁₋₆ haloalkyl, wherein said C₁₋₆ alkyl is optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), C(O)NR^(c3)R^(d3), and NR^(c3)R^(d3); each Cy⁴ is independently selected from phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, and 4-7 membered heterocycloalkyl, each of which is optionally substituted with 1 or 2 substituents independently selected from R^(Cy); each Cy⁵ is independently selected from 4-7 membered heterocycloalkyl, each of which is optionally substituted with 1 or 2 substituents independently selected from R^(Cy); each R^(Cy) is selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, NO₂, OR^(a6), C(O)R^(b6), C(O)NR^(c6)R^(d6), C(O)OR^(a6), NR^(c6)R^(d6), NR^(c6)C(O)R^(b6), S(O)₂R^(b6), and S(O)₂NR^(c6)R^(d6); each R^(a1) is C₁₋₆ alkyl optionally substituted with Cy⁵; each R^(a3), R^(c3), and R^(d3) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c3) and R^(d3) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a4), R^(b4), R^(c4), and R^(d4) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c4) and R^(d4) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a5), R^(b5), R^(c5), and R^(d5) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl-, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₆₋₁₀ aryl, C₃₋₁₀ cycloalkyl, 5-10 membered heteroaryl, 4-10 membered heterocycloalkyl, C₆₋₁₀ aryl-C₁₋₄ alkyl-, C₃₋₁₀ cycloalkyl-C₁₋₄ alkyl-, (5-10 membered heteroaryl)-C₁₋₄ alkyl-, and (4-10 membered heterocycloalkyl)-C₁₋₄ alkyl- are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c5) and R^(d5) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, 5-6 membered heteroaryl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8), wherein said C₁₋₆ alkyl, C₃₋₇ cycloalkyl, 4-7 membered heterocycloalkyl, C₆₋₁₀ aryl, and 5-6 membered heteroaryl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)(O)₂R^(b8), NR^(c8)(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a6), R^(b6), R^(c6), and R^(d6) is independently selected from H, C₁₋₆ alkyl, C₁₋₄ haloalkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl, wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₁₋₄ cyanoalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); or any R^(c6) and R^(d6) together with the N atom to which they are attached form a 4-, 5-, 6-, or 7-membered heterocycloalkyl group optionally substituted with 1, 2, or 3 substituents independently selected from C₁₋₆ alkyl, C₁₋₆ haloalkyl, halo, CN, OR^(a8), SR^(a8), C(O)R^(b8), C(O)NR^(c8)R^(d8), C(O)OR^(a8), OC(O)R^(b8), OC(O)NR^(c8)R^(d8), NR^(c8)R^(d8), NR^(c8)C(O)R^(b8), NR^(c8)C(O)NR^(c8)R^(d8), NR^(c8)C(O)OR^(a8), C(═NR^(e8))NR^(c8)R^(d8), NR^(c8)C(═NR^(e8))NR^(c8)R^(d8), S(O)R^(b8), S(O)NR^(c8)R^(d8), S(O)₂R^(b8), NR^(c8)S(O)₂R^(b8), NR^(c8)S(O)₂NR^(c8)R^(d8), and S(O)₂NR^(c8)R^(d8); each R^(a8), R^(b8), R^(c8), and R^(d8) is independently selected from H, C₁₋₄ alkyl, C₁₋₄ haloalkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl, wherein said C₁₋₄ alkyl, C₂₋₄ alkenyl, and C₂₋₄ alkynyl are each optionally substituted with 1, 2, or 3 substituents independently selected from OH, CN, amino, halo, C₁₋₄ alkyl, C₁₋₄ alkoxy, C₁₋₄ alkylthio, C₁₋₄ alkylamino, di(C₁₋₄ alkyl)amino, C₁₋₄ haloalkyl, and C₁₋₄ haloalkoxy; and each R^(e8) is independently selected from H, C₁₋₄ alkyl, and CN; wherein when X is N; then Ring A is substituted by at least one R^(A) or Ring B is substituted by at least one R^(B).
 4. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein X is N.
 5. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein X is CR^(X).
 6. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Y is C═O and Z is NR^(Z).
 7. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Y is CR³ and Z is N.
 8. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Ring A is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(A).
 9. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Ring A is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(A).
 10. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Ring A is phenyl substituted by CN.
 11. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Ring B is C₆₋₁₀ aryl optionally substituted by 1, 2, 3, or 4 substituents independently selected from R^(B).
 12. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Ring B is phenyl optionally substituted by 1 or 2 substituents independently selected from R^(B).
 13. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Ring B is phenyl substituted by methyl.
 14. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R³ is H.
 15. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(Z) is H, C₁₋₆ alkyl, or C₁₋₆ haloalkyl, wherein said C₁₋₆ alkyl is optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from Cy⁴, halo, CN, OR^(a3), C(O)NR^(c3)R^(d3), and NR^(c3)R^(d3).
 16. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(Z) is H, C₁₋₄ alkyl, or C₁₋₆ haloalkyl, wherein said C₁₋₄ alkyl is optionally substituted with 1, 2, 3, 4, or 5 substituents independently selected from OH, CN, F, phenyl, C₃₋₇ cyclalkyl, 5-6 membered heterocycloalkyl, 5-6 membered heteroaryl, C(O)NH₂, phenoxy, and dimethylamino, wherein said phenyl is optionally substituted by CN and said pyrazolyl is optionally substituted by methyl.
 17. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(Z) is H, methyl, cyanomethyl, cyanoethyl, cyclopentylmethyl, tetrahydrofuranylmethyl, (1-methyl-1H-pyrazol-3-yl)methyl, morpholinylethyl, aminocarbonylmethyl, 3,3,3-trifluoro-2-hydroxypropyl, piperidinylmethyl, phenoxyethyl, dimethylaminoethyl, benzyl, cyanophenyl, or hydroxyethyl.
 18. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(X) is H.
 19. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein each R^(A) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3, substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a4), C(O)R^(b4), C(O)NR^(c4)R^(d4), C(O)OR^(a4), NR^(c4)R^(d4), NR^(c4)C(O)R^(b4), S(O)₂R^(b4), and S(O)₂NR^(c4)R^(d4).
 20. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(A) is CN.
 21. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein each R^(B) is independently selected from halo, C₁₋₆ alkyl, C₂₋₆ alkenyl, C₂₋₆ alkynyl, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5), wherein said C₁₋₆ alkyl, C₂₋₆ alkenyl, and C₂₋₆ alkynyl are each optionally substituted by 1, 2, or 3 substituents independently selected from halo, C₁₋₆ haloalkyl, CN, NO₂, OR^(a5), C(O)R^(b5), C(O)NR^(c5)R^(d5), C(O)OR^(a5), NR^(c5)R^(d5), NR^(c5)C(O)R^(b5), S(O)₂R^(b5), and S(O)₂NR^(c5)R^(d5).
 22. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(B) is C₁₋₆ alkyl.
 23. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein R^(B) is methyl.
 24. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein each R^(a1) is C₁₋₆ alkyl optionally substituted with Cy⁵.
 25. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein each R^(a1) is C₁₋₆ alkyl optionally substituted with 4-7 membered heterocycloalkyl.
 26. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein each R^(a1) is pyrrolidinylmethyl.
 27. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Cy⁴ is phenyl, C₃₋₇ cycloalkyl, 5-6 membered heteroaryl, and 5-6 membered heterocycloalkyl, each optionally substituted by one substituent independently selected from R^(Cy).
 28. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Cy⁴ is phenyl, cyclopentyl, tetrahydrofuranyl, pyrazolyl, morpholinyl, or piperidinyl, each optionally substituted by one substituent independently selected from methyl and CN.
 29. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Cy⁵ is 4-7 heterocycloalkyl.
 30. The compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein Cy⁵ is pyrrolidinyl.
 31. The compound of claim 1 having Formula IIa:

or a pharmaceutically acceptable salt thereof.
 32. The compound of claim 1 having Formula IIb:

or a pharmaceutically acceptable salt thereof.
 33. The compound of claim 1 having Formula IIIa or IIIb:

or a pharmaceutically acceptable salt thereof.
 34. The compound of claim 1 having Formula IIIc or IIId:

or a pharmaceutically acceptable salt thereof.
 35. The compound of claim 1 having Formula IVa:

or a pharmaceutically acceptable salt thereof, wherein: n is 0, 1, 2, 3, or 4; and m is 0, 1, 2, 3, or
 4. 36. The compound of claim 1 having Formula IVb:

or a pharmaceutically acceptable salt thereof, wherein: n is 0, 1, 2, 3, or 4; and m is 0, 1, 2, 3, or
 4. 37. The compound of claim 1 having Formula V:

or a pharmaceutically acceptable salt thereof.
 38. The compound of claim 1 selected from: 4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 2-fluoro-4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{2-methyl-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; (R)-4-(2-(cyanomethyl)-3-oxo-8-(pyrrolidin-3-ylmethoxy)-5-p-tolyl-2,3-dihydro-[1,2,4]triazolo[4,3-a]pyridin-6-yl)benzonitrile; 4-{2-(2-cyanoethyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{2-(cyclopentylmethyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-[5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2-(tetrahydrofuran-2-ylmethyl)-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl]benzonitrile; 4-{5-(4-methylphenyl)-2-[(1-methyl-1H-pyrazol-3-yl)methyl]-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{5-(4-methylphenyl)-2-(2-morpholin-4-ylethyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 2-[6-(4-cyanophenyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyridin-2(3H)-yl]acetamide; 4-[5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2-(3,3,3-trifluoro-2-hydroxypropyl)-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl]benzonitrile; 4-{5-(4-methylphenyl)-3-oxo-2-(piperidin-4-ylmethyl)-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{5-(4-methylphenyl)-3-oxo-2-(2-phenoxyethyl)-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{2-[2-(dimethylamino)ethyl]-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{2-benzyl-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{2-(4-cyanobenzyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{2-(2-hydroxyethyl)-5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyridin-6-yl}benzonitrile; 4-{5-(4-methylphenyl)-8-[(3R)-pyrrolidin-3-ylmethoxy][1,2,4]triazolo[4,3-a]pyrazin-6-yl}benzonitrile; and 4-{5-(4-methylphenyl)-3-oxo-8-[(3R)-pyrrolidin-3-ylmethoxy]-2,3-dihydro[1,2,4]triazolo[4,3-a]pyrazin-6-yl}benzonitrile; or a pharmaceutically acceptable salt of any of the aforementioned.
 39. A pharmaceutical composition comprising a compound of claim 1, or a pharmaceutically acceptable salt thereof, and at least one pharmaceutically acceptable carrier.
 40. A method of inhibiting LSD1 comprising contacting a compound of claim 1, or a pharmaceutically acceptable salt thereof, with said LSD1.
 41. A method of treating a disease comprising administering to a patient a therapeutically effective amount of a compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein said disease is cancer.
 42. The method of claim 41 wherein said cancer is a hematological cancer.
 43. The method of claim 42 wherein said hematological cancer is selected from acute lymphoblastic leukemia (ALL), acute myelogenous leukemia (AML), acute promyelocytic leukemia (APL), chronic lymphocytic leukemia (CLL), chronic myelogenous leukemia (CML), diffuse large B-cell lymphoma (DLBCL), mantle cell lymphoma, Non-Hodgkin lymphoma (including relapsed or refractory NHL and recurrent follicular), Hodgkin lymphoma, primary myelofibrosis (PMF), polycythemia vera (PV), essential thrombocytosis (ET)), myelodysplasia syndrome (MDS), or multiple myeloma.
 44. The method of claim 41 wherein said cancer is a sarcoma, lung cancer, gastrointestinal cancer, genitourinary tract cancer, liver cancer, bone cancer, nervous system cancer, gynecological cancer, or skin cancer.
 45. A method of treating a disease comprising administering to a patient a therapeutically effective amount of a compound of claim 1, or a pharmaceutically acceptable salt thereof, wherein said disease is a viral disease or a beta-globinopathy. 